View Single Post
Old 10-26-2003, 12:16 PM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default

If you want to lock "testfile", try and create a *new* "testfile.lock" in the same directory. Repeat (with ample sleep) until this succeeds. To unlock, simply remove the file. This method is supported by almost all configurations.

flock might be avail too
http://osr5doc.ca.caldera.com:457/cg.../man?flock+TCL
Mouton is offline