Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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:


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 can achieve something like flock(); for windows? Is there a module? A function I dont know?


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://187218]
Approved by osfameron
[LanX]: Jeez .... UTF8 in my company is driving me crazy

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-03-19 23:14 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.