Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re: "unique" filename?

by merlyn (Sage)
on Dec 05, 2000 at 04:25 UTC ( [id://44893]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: "unique" filename?
in thread "unique" filename?

If someone else is creating and deleting files with your process ID and your timestamp, you've got more problems than can be solved within the scope of this discussion. For one, you must now do an atomic update, not just test in one operation and set in another.

Please specify your conditions when you provide a solution. I'm presuming standard Unix, where I can be reasonably assured that time().$$ is unique for a given process. If you've got some weirdo situation, please give it. I'm pretty sure you were downvoted (at least by me :) because you didn't specify your alternative context.

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 01:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found