How to perform an action when file changed?

Posted by ZeissS on Stack Overflow See other posts from Stack Overflow or by ZeissS
Published on 2010-05-28T11:41:01Z Indexed on 2010/05/28 11:41 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

Hi,

I want to create a script that checks an URL and perform an action (download + unzip) when the "Last-Modified" header of the remote file changed. I thought about fetching the header with curl but then I have to store it somewhere for each file and perform a date comparison.

Does anyone have a different idea using (mostly) standard unix tools?

thanks

© Stack Overflow or respective owner

Related posts about bash

Related posts about scripting