gunqqer

Russian Roulette

Jun 11th, 2018
1,658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. gunqqer@Friithian:~$ cat ~/tmp/randomkill
  2. RandomNum=$(ps -A -o pid | shuf -n 1 )
  3. if ((RandomNum)); then shutdown -h now; else kill -9 $RandomNum; fi
Advertisement
Add Comment
Please, Sign In to add comment