Checking for changes in a webpage
Submitted by mariogalan on Mon, 05/20/2013 - 20:02.
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
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
Add new comment