Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!rutgers!sri-unix!hplabs!ucbvax!jade!eris!chapman From: chapman@eris.BERKELEY.EDU (Brent Chapman) Newsgroups: comp.unix.questions Subject: Re: Unix Question Message-ID: <1667@jade.BERKELEY.EDU> Date: Sat, 15-Nov-86 18:22:06 EST Article-I.D.: jade.1667 Posted: Sat Nov 15 18:22:06 1986 Date-Received: Sun, 16-Nov-86 20:04:04 EST References: <249@sjuvax.UUCP> <808@mtund.UUCP> <4287@umcp-cs.UUCP> <850@ihlpf.UUCP> Sender: usenet@jade.BERKELEY.EDU Reply-To: chapman@eris.BERKELEY.EDU (Brent Chapman) Distribution: net Organization: UNIXversity of California at Berkeley Lines: 29 In article <850@ihlpf.UUCP> straka@ihlpf.UUCP (Straka) writes: >> In article <808@mtund.UUCP> adam@mtund.UUCP (Adam V. Reed) writes: >> >> How can one change the date/time stamp of a file? >> >See touch(1) in the User Reference Manual (RTFM!). >> The original poster does not want to put the *current* time on >> the file...he wants to put *any* time on the file. There are three > ... >No, no, no. 'touch' provides the current time stamp as a *default*. >The syntax (at least on SVR2) for touch is: Key words in the above "solution": "for SVR2"... Unfortunately, 4BSD's 'touch' program doesn't provide this functionality. (Yet again, folks: when you ask a question, PLEASE state which version of UNIX you're using, what hardware, and anything else that may be useful. Remember, "All versions of UNIX are equal, but some are more equal than others." We now return you to our regularly scheduled program...) Under 4BSD, you need to use either the 'utime()' or the 'utimes()' call. You'll need to look up the details of both in the manual, and decide which one to use. Brent -- Brent Chapman chapman@eris.berkeley.edu or ucbvax!eris!chapman