Skip to content

Instantly share code, notes, and snippets.

View IAMNGP's full-sized avatar
😐

Prakash IAMNGP

😐
View GitHub Profile
@IAMNGP
IAMNGP / crontab
Created November 22, 2018 08:15 — forked from westonruter/crontab
Script to ping URLs defined in urls.txt and alert you if they do not return 200 OK. You'll need to `sudo apt-get install bsd-mailx` to get the email, and you'll want to add a filter to make sure that $from is never sent to spam. A log is also kept in log.txt including timestamp, status code, and URL.
*/5 * * * * /home/pi/pinger/pinger.sh > /dev/null 2>&1