
perlkid
stranger
Sep 18, 2000, 8:39 PM
Post #7 of 10
(17307 views)
|
Thanks Kanji, Yea, About that LOCK_NB, how do I use it. In this book "Perl Core Language Little Black Book" it mentions it and says <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>LOCK_NB(=1)--Use with LOCK_SH or LOCK_EX for nonblocking access (that is, flock returns at once, before verifying the lock is active).<HR></BLOCKQUOTE> But that's all it says, where and how do I use it anyway. But You said to <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>investigate using LOCK_NB<HR></BLOCKQUOTE> So never mind I sould go find out myself. Thanks for that tip, I'm going to do that. The only reason I was worried about flocks is I read in this book that on unix flock is only advisory, but on other os's like NT it's mandatory. And thanks for the tip also dws, But I found that code to work and then I just kept using it since I stuggled with it for about 2 hours. Thanks Again Dws And Kanji perlkid
|