The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-01-2007
pdr302 pdr302 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 1
Compare file time

i need to write script where I need to keep monitoring a files timestamp, if it changes, I need to run another abc.sh script.

I am thinking I can save file's current timestamp in another file or enviornment variable and after 10 min compare the files timestamp with the original timestamp. If files timestamp is newer, run abc.sh

can someone please help.