The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-19-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,771
If other users can access the file, you cannot stop them from updating the timestamp on the file. If you open the file, then read or write the file you can get the file's mtime from a stat call, then when you are done with the file, you can reset filetimes with a utime call, using the data you got from stat.

All this sounds bogus to me. What are you trying to accomplish? not how to do what you are attempting to do that looks odd. It may be what you have to do, but I kind of doubt it.