Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #High RAM usage checker
- r=`free -m |awk 'NR==2' |awk '{ print$4 }'`
- if [ $r -lt 700 ];
- then
- ps -e -orss=,args= | sort -b -k1,1n |tail -n 20 >> overusage
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement