Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Changing file modification timestamp

by doom (Deacon)
on Jun 04, 2007 at 18:11 UTC ( [id://619191]=note: print w/replies, xml ) Need Help??


in reply to Changing file modification timestamp

In addition to "utime", there's also the unix command-line utility "touch". If you use "touch", with no other arguments, it changes the timestamp on a file to the current time.

  • Comment on Re: Changing file modification timestamp

Replies are listed 'Best First'.
Re^2: Changing file modification timestamp
by halley (Prior) on Jun 04, 2007 at 19:07 UTC
    In particular, touch and utime match if the file already exists. The touch command is basically equivalent to:
    if utime() fails, if create() succeeds, close() it (zero bytes written) else, give an error message

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://619191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-24 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found