Skip to content

Instantly share code, notes, and snippets.

@seancron
Created March 27, 2012 13:43
Show Gist options
  • Save seancron/2215994 to your computer and use it in GitHub Desktop.
Save seancron/2215994 to your computer and use it in GitHub Desktop.
Google I/O 2012 Early Response System
while true; do
curl -s -i https://developers.google.com/events/io/register > ~/IO.log
grep "Registration opens" ~/IO.log > /dev/null 2>&1
if [ $? -ne 0 ]; then
# Popup alert
zenity --info --text="Google IO registration open"
# Email alert
#echo 'Go Go GO!' | mail -s "Google I/O 2012 registration is now open" name@email.com
# Text msg alert
#echo 'I/O registration now open' | mail nnnnnnnnnn@vtext.com
#echo 'I/O registration now open' | mail zzzzzzzzzz@txt.att.net
exit 0;
fi
echo "`date` Not open :("
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment