Test Test
  • Home
  • Computer
  • Recipes

checking whether a URL is reachable

Details
boehmi
scripts
21 February 2016
Hits: 12177
Empty
  •  Print 
  • Email
ERROR=1
URL="$1"
EMAIL=""
SLEEP="300"
while [ $ERROR -gt 0 ]
do
wget -T 10 -t 1 --spider "$URL";ERROR=$?;sleep $SLEEP;done;mail -s "website is back" $EMAIL < /dev/null
done

Most Read

  • Variables in a Skype script
  • welcome
  • checking whether a URL is reachable
  • Pizza dough
  • keep your virtual harddisks compact with VirtualBox

Latest Articles

  • Disable timesync for a Virtualbox VM
  • keep your virtual harddisks compact with VirtualBox
  • Variables in a Skype script
  • welcome
  • checking whether a URL is reachable
Bootstrap is a front-end framework of Twitter, Inc. Code licensed under MIT License. Font Awesome font licensed under SIL OFL 1.1.