useful script
Aug. 16th, 2009 05:16 pmyoinked from metafilter, modified a bit, stuck into a cron on my machine:
cd /home/jrr/sites/monitor; curl -s http://www.hauntedfrog.com | md5sum | tee hfnew | diff -q - hfold || echo 'hauntedfrog.com has changed' | mail -s 'IT CHANGED!' ridley.john@gmail.com && mv hfnew hfold
MD5s the pulled webpage, sends an email if it changes. Repeat for multiple web pages. Doesn't work for one of my sites which has a homepage that changes every reload, but will wake me up if the same thing happens again.
cd /home/jrr/sites/monitor; curl -s http://www.hauntedfrog.com | md5sum | tee hfnew | diff -q - hfold || echo 'hauntedfrog.com has changed' | mail -s 'IT CHANGED!' ridley.john@gmail.com && mv hfnew hfold
MD5s the pulled webpage, sends an email if it changes. Repeat for multiple web pages. Doesn't work for one of my sites which has a homepage that changes every reload, but will wake me up if the same thing happens again.
no subject
Date: 2009-08-17 01:26 am (UTC)