Skip to content

Instantly share code, notes, and snippets.

@csexton
Created February 19, 2014 00:07
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 csexton/9083354 to your computer and use it in GitHub Desktop.
Save csexton/9083354 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
while true
do
num=$(ec2-describe-instances | grep running | wc -l | awk '{print $1}')
echo $num
[[ $num < 15 ]] && say yo yo yo yo yo yo yo yo
sleep 300
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment