Skip to content

Instantly share code, notes, and snippets.

@joshrobb
Created July 13, 2009 10:03
Show Gist options
  • Save joshrobb/146032 to your computer and use it in GitHub Desktop.
Save joshrobb/146032 to your computer and use it in GitHub Desktop.
if [ `ssh $MY_HOST ps aux | awk '{sum+=$6}; END {print sum}'` -gt $RAM_LIMIT ]; then growlnotify -m "Some message"; fi ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment