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

Monitor A Website From Command Line

You may also like...

  • Dan Stromberg

    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

    • SK

      That’s cool. I will check soon.