Script for scheduled check of websites availability and mail report. Suited for crontab job.
-
Create
emails.lstfile and fill it with each email in new line (as inemails.lst.example). leave an empty line in the end. -
Create
websites.lstfile and fill it with each website in a new line (as inwebsites.lst.example). leave an empty line in the end.Note that the script will follow url(s) with 301 (redirect).
Add the following lines to crontab config ($ crontab -e)
THIS_IS_CRON=1
*/30 * * * * /path/to/isOnline/checker.sh
in this example crontab will run checker.sh every 30min.
by ET.