Heidi,
Use a -t option with touch and specify the date and time in YYYMMDDHHMM
format.
:sh.hpbin.sys "-c 'touch -t 200109151030 myfile'"
should set the mod and access date/time to 09/15/2001 10:30 am for myfile.
Steve Miller
Beechglen Development, Inc
Cincinnati, Ohio
----- Original Message -----
From: "Heidi Wilker" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, October 16, 2001 10:08 AM
Subject: Re: Putting 'touch' in logon UDC...
> Is there a method or utility available to change a file's dates to a
> user-specified date (other than changing the current date on the system)?
>
>
>
> -----Original Message-----
> From: Andrew Russel [mailto:[log in to unmask]]
> Sent: Tuesday, October 16, 2001 9:46 AM
> To: [log in to unmask]
> Subject: Re: Putting 'touch' in logon UDC...
>
>
> Thanks to Robert, Ken, Steve and Ted for you help on
> this. The best solution was to run the 'sh' with the
> '-c option thus...
>
> XEQ sh.hpbin.sys;INFO="-c 'touch -a
> /!HPACCOUNT/!HPGROUP/*'"
>
> Many thanks again,
>
> Andrew.
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|