Skip to content

Instantly share code, notes, and snippets.

@irace
Created July 29, 2011 01:09
Show Gist options
  • Save irace/1112932 to your computer and use it in GitHub Desktop.
Save irace/1112932 to your computer and use it in GitHub Desktop.
Wake up when Thom Yorke tickets go on sale (didn't work)
#!/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