Created
March 27, 2012 13:43
-
-
Save seancron/2215994 to your computer and use it in GitHub Desktop.
Google I/O 2012 Early Response System
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" [email protected] | |
# Text msg alert | |
#echo 'I/O registration now open' | mail [email protected] | |
#echo 'I/O registration now open' | mail [email protected] | |
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