Created
March 12, 2010 14:18
-
-
Save 0xced/330344 to your computer and use it in GitHub Desktop.
Notify when Apple Store is back
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
#!/bin/bash | |
while true; do | |
curl --silent http://store.apple.com | grep --silent "backsoon" | |
if [ $? -ne 0 ]; then | |
growlnotify --sticky --name 'Apple Store' --image ~/Pictures/Apple.tiff --message 'Apple Store is now open!' | |
exit 0 | |
fi | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment