lock test from sh script

Igor Pokrovsky ip at doom.ctinet.ru
Fri Oct 17 10:03:05 UTC 2008


Hi all!

I need to check if file is locked or not (with flock) from a shell
script. I remember there was something but cannot recall what exactly.
And if possible I do not want to write my own test utility even it
is several lines in length)

Thanks,
-ip



More information about the freebsd-hackers mailing list