Skip to content

Instantly share code, notes, and snippets.

@scotttam
Created April 13, 2011 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scotttam/917488 to your computer and use it in GitHub Desktop.
Save scotttam/917488 to your computer and use it in GitHub Desktop.
script to watch the unicorns
#!/bin/sh
loop_count=10000
while [ $loop_count -gt 0 ]; do
clear
ls -l /data/server/current
uptime
ps wax --forest | grep [u]nicorn
sleep 1
echo "Refreshing..."
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment