Created
July 29, 2011 01:09
-
-
Save irace/1112932 to your computer and use it in GitHub Desktop.
Wake up when Thom Yorke tickets go on sale (didn't work)
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 | |
numberOfShows=`curl --silent http://thomyorketickets.waste.uk.com/Store/DisplayItems.html | grep -c "time to be confirmed"` | |
while true; do | |
if [ "$numberOfShows" -ne "5" ]; then | |
while true; do | |
`say check for tickets` | |
sleep 5 | |
done | |
fi | |
echo "$(date): Number of shows: $numberOfShows" | |
sleep 600 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment