Skip to content

Instantly share code, notes, and snippets.

@diogomonica
Created July 19, 2013 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogomonica/6034213 to your computer and use it in GitHub Desktop.
Save diogomonica/6034213 to your computer and use it in GitHub Desktop.
#! /bin/bash
url="http://rez.urbanspoon.com/b/widget/2086?background=ebf3fd&border=bbd4f1&header=000&link=0144a7&locale=en&source=selfhost&text=000"
hash=`cat /tmp/state_bird`
`curl $url | md5sum | awk '{print $1}' > /tmp/state_bird`
newhash=`cat /tmp/state_bird`
if [[ "$hash" != "$newhash" ]]; then echo "Reservations page just changed: http://statebirdsf.com/reservations/ - $newhash" | mail -s Reservations diogo.monica@gmail.com; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment