Skip to content

Instantly share code, notes, and snippets.

@michal
Created February 27, 2010 14:45
Show Gist options
  • Select an option

  • Save michal/316721 to your computer and use it in GitHub Desktop.

Select an option

Save michal/316721 to your computer and use it in GitHub Desktop.
while [ 1 ]; do ps aux | grep --exclude=grep php-cgi | grep -v grep | awk 'BEGIN{s=0;}{s=s+$6;}END{print s/1024.2;}'; sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment