home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!haven.umd.edu!mimsy!afterlife!adm!news
- From: sgi.com!pdi!shoshana@BRL.MIL (Shoshana Abrass)
- Newsgroups: comp.sys.sgi
- Subject: Re: setting file access time
- Message-ID: <32522@adm.brl.mil>
- Date: 11 Sep 92 03:35:34 GMT
- Sender: news@adm.brl.mil
- Lines: 21
-
-
- In <9209101408.AA04822@bflsgu.fl.bs.dlr.de>, "R. Beyer" <beyer@bflsgu.fl.bs.dlr.de> writes:
-
- > I am looking for a command which can be used on the command
- > line or in a script to set the file access time like, for
- > instance, utime(2).
-
- If I understand what you want to do, the touch(1) command will
- set the access time for a file. Use
-
- touch -a mmddhhmm[yy]
-
- where "mmddhhmm[yy]" is the date string that you want the access
- time to be, eg, "09101706" for Sep 10, 5:06 PM.
-
- You have to have write permission on the file, I think.
-
- -shoshana
- shoshana@pdi.com
- Shoshana Abrass
- Pacific Data Images, Sunnyvale, CA
-