Skip to content

Instantly share code, notes, and snippets.

@0xced
Created March 12, 2010 14:18
Show Gist options
  • Save 0xced/330344 to your computer and use it in GitHub Desktop.
Save 0xced/330344 to your computer and use it in GitHub Desktop.
Notify when Apple Store is back
#!/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