Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Thread safe equivalent of LINUX touch command

by RichardK (Priest)
on Nov 22, 2012 at 15:48 UTC ( #1005153=note: print w/ replies, xml ) Need Help??


in reply to Thread safe equivalent of LINUX touch command

Does utime do what you need?

the help says :-

For example, this code has the same effect as the Unix touch(1) comman +d when the files already exist and belong to the user running the program: #!/usr/bin/perl $atime = $mtime = time; utime $atime, $mtime, @ARGV;

Don't know about thread safety though, but why would you care ?


Comment on Re: Thread safe equivalent of LINUX touch command
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-12-18 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (51 votes), past polls