Now for a really easy way to be notified when an URL goes down:
email=$(/bin/cat <<!
From: URL Monitor <urlmonitor@localhost>
To: $2
Subject: $1 is down!
!)
/usr/bin/curl -f $1 || echo "$email" | /usr/sbin/sendmail -t
Just put it in your crontab as urlmonitor.sh <URL to check> <email address>.



Thanks . it is much relieving to come accross this kind of utility than reading thowing a page load of instructions for a seasoned professional who happens to have never used a particular command e.g sendmail in this instance.