Kory@lemmy.ml to linuxmemes@lemmy.world · 17 hours agoTerminating a processlemmy.mlimagemessage-square88fedilinkarrow-up1637arrow-down133file-text
arrow-up1604arrow-down1imageTerminating a processlemmy.mlKory@lemmy.ml to linuxmemes@lemmy.world · 17 hours agomessage-square88fedilinkfile-text
minus-squareBjörn Tantau@swg-empire.delinkfedilinkarrow-up6·12 hours agoYou can easily make a program unkillable (or to be more precise untermable) on Linux. Here’s a simple bash script that will do that. #!/bin/bash function finish { while true do echo "Can't kill me." sleep 10 done } trap finish EXIT trap finish TERM trap finish INT while true do echo "Still alive." sleep 10 done
You can easily make a program unkillable (or to be more precise untermable) on Linux. Here’s a simple bash script that will do that.
#!/bin/bash function finish { while true do echo "Can't kill me." sleep 10 done } trap finish EXIT trap finish TERM trap finish INT while true do echo "Still alive." sleep 10 done