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

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
Mouton is offline