Checking for changes in a webpage

With this little script you can get an email when a webpage changes.

#!/bin/bash
curl -s http://example.com | grep "Text to check" && mail -s "Mail subject" youremail@example.com < /dev/null

Just add it to your crontab and make it run every 5 minutes with the following line:

*/5 * * * * /path/script.sh

Añadir nuevo comentario

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.