home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13511 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  931 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!haven.umd.edu!mimsy!afterlife!adm!news
  2. From: sgi.com!pdi!shoshana@BRL.MIL (Shoshana Abrass)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: setting file access time
  5. Message-ID: <32522@adm.brl.mil>
  6. Date: 11 Sep 92 03:35:34 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 21
  9.  
  10.  
  11. In <9209101408.AA04822@bflsgu.fl.bs.dlr.de>, "R. Beyer" <beyer@bflsgu.fl.bs.dlr.de> writes:
  12.  
  13. >  I am looking for a command which can be used on the command 
  14. >  line or in a script to set the file access time like, for 
  15. >  instance, utime(2). 
  16.  
  17.   If I understand what you want to do, the touch(1) command will
  18.   set the access time for a file. Use
  19.  
  20.     touch -a mmddhhmm[yy]
  21.  
  22.   where "mmddhhmm[yy]" is the date string that you want the access
  23.   time to be, eg, "09101706" for Sep 10, 5:06 PM.
  24.  
  25.   You have to have write permission on the file, I think.
  26.  
  27.   -shoshana
  28.    shoshana@pdi.com
  29.    Shoshana Abrass
  30.    Pacific Data Images, Sunnyvale, CA
  31.