I need to monitor an html web page for ANY changes and should be able to know if it's modified or not (since last query). I do not need what modifications but just notification is enough.
This is a simple web page and I don't need to parse the links any further.
Is it possible to do it using a shell script, if yes please advise me how to do it.
Thanks!
---------- Post updated at 11:07 AM ---------- Previous update was at 10:24 AM ----------
I got it done by using wget and keep downloading html files and comparing with last previously downloaded file. This way works but I just want to know if there's any better way.
What operating systems must be supported? Some systems have efficient notification interfaces which do not require polling. Upon notification of file modification, an email can be sent.
Take the response header of the Webpage and look for the last modified time
If you are specific on what contents to be checked in the Web page[say for example a div part], download and cut that in a txt file and do a checksum with md5 or cksum to compare the change