Checking for changes in a webpage
Enviado por mariogalan el Lun, 20/05/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
Añadir nuevo comentario