I want to lock and unlock a file that resides in NFS share so I've found the reliable way is to go with lockf how can I use that in command line for flock I could do 'flock -s number' how can I do that for lockf.And I am on debian when I do lockf it says no such command.

  • do you have lockfile on your system? – iruvar Aug 31 '16 at 13:25
  • lockfile, yes just installed – Explorer_N Aug 31 '16 at 13:44
  • but lockfile create new semaphore file isn't , but i want to lock the filedes of a previously created file – Explorer_N Aug 31 '16 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.