Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Locking files in Windows OS

by kidd (Curate)
on Aug 02, 2002 at 21:03 UTC ( #187218=perlquestion: print w/replies, xml ) Need Help??
kidd has asked for the wisdom of the Perl Monks concerning the following question:

Hello...

Until a few months ago I noticed the importance of locking your files when you read them or edit them...
So now I always use flock();. But I've been wanting to create my script so they can run either in UNIX and in Windows. At this time when your OS is Windows my scripts doesn't lock the files, and that is dangerous since the file can be opened by several users at the same time...
So I guess my question is..how can achieve something like flock(); for windows? Is there a module? A function I dont know?

Thanks...

Replies are listed 'Best First'.
Re: Locking files in Windows OS
by DamnDirtyApe (Curate) on Aug 02, 2002 at 21:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://187218]
Approved by osfameron
help
Chatterbox?
[LanX]: ha ... just read an article saying that some US presidents in the past lost their nuclear codes
[LanX]: xD
[Corion]: The code is 00000000, as always, no?
[GotToBTru]: I remember hearing about somebody misplacing a list of code phrases or something
[marto]: 12345
[GotToBTru]: the "nuclear codes" are in the case cuffed to the wrist of some guy
[LanX]: not always

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-01-20 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.