Created
February 24, 2011 13:28
-
-
Save NARKOZ/842156 to your computer and use it in GitHub Desktop.
Apple Store is down, awaiting new 2011 MacBook Pro
This file contains hidden or 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 | |
STOREDOWN=`curl -s http://store.apple.com/us | grep backsoon` | |
if [ "$STOREDOWN" = "" ]; then | |
/usr/local/bin/growlnotify "Apple store is up!" -m "Let' see what's new" | |
exit | |
fi | |
sleep 20 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment