in reply to Locking a file in NFS with proper exception handling

file locking is os dependend, and doesn't always go right. I'd suggest your script itself handles the locking, eg:

1. check the lock-file when opening the file
1. write a lock-file when opening the file
2. check the lock-file before opening the file
Ah, ... same as described here

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
  • Comment on Re: Locking a file in NFS with proper exception handling