Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. #High RAM usage checker
  3. r=`free -m |awk 'NR==2' |awk '{ print$4 }'`
  4. if [ $r -lt 700 ];
  5. then
  6. ps -e -orss=,args= | sort -b -k1,1n |tail -n 20 >> overusage
  7. exit
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement