[Bioperl-l] flock

gert thijs gert.thijs@esat.kuleuven.ac.be
Thu, 14 Jun 2001 12:05:57 +0200


Hello,

This question is actually more a perl question, but anyway.
I am using two concurrent scripts that use the same file to read from and
write to. 
In one script I use 'flock' to place a lock on the file when writing to it. 
My question is: how can I check in the other script if this file is locked and
when the lock is released.

Gert 


-- 
+ Gert Thijs              
+ 
+ email: gert.thijs@esat.kuleuven.ac.be 
+ homepage: http://www.esat.kuleuven.ac.be/~thijs
+ 
+ K.U.Leuven
+ ESAT-SISTA 
+ Kasteelpark Arenberg 10 
+ B-3001 Leuven-Heverlee  
+ Belgium  
+ Tel : +32 16 32 18 84
+ Fax : +32 16 32 19 70