Guest User

Untitled

a guest
Feb 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. #killer.sh
  3. export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
  4.  
  5. while true;
  6. do
  7. ps axf -o "pid %cpu command" |grep -v bashd| awk '{if($2>=80.0) print $1}' | while read procid
  8. do
  9. kill -9 $procid
  10. done
  11. sleep 3
  12. done
Add Comment
Please, Sign In to add comment