An Easy Way To Monitor A Website From Command Line In Linux

Monitor A Website From Command Line

2 Responses

  1. Dan Stromberg says:

    I wrote something along these lines years ago. It can be found here: http://stromberg.dnsalias.org/~strombrg/notify-when-up2.html .

    It (by default) e-mails you and gives you an X11 popup when a state changes; it can also page you if you have an email->pager gateway.

    For a website content change, you can:
    notify-when-up2 –delta ‘curl –silent http://www.google.com | md5sum -‘
    That’ll make it memorize the md5 hash of http://www.google.com on the first iteration, and check against that same md5 hash on each subsequent run until there’s a change.

    That way you don’t have to keep checking on a watch; you can just leave it running somewhere and mostly forget about it.

    HTH

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.