lckdo -V (return code: 64)
lckdo: invalid option -- '-'
lckdo (return code: 0)
lckdo: execute a program with a lock set.
Usage: lckdo [options] lockfile program [arguments]
where options are:
-w - if the lock is already held by another process,
wait for it to complete instead of failing immediately
-W sec - the same as -w but wait not more than sec seconds
-e - execute the program directly, no fork/wait
(keeps extra open file descriptor)
-E nnn - set the fd# to keep open in -e case (implies -e)
-n - do not create the lock file if it does not exist
-q - produce no output if lock is already held
-s - lock in shared (read) mode
-x - lock in exclusive (write) mode (default)
-t - test for lock existence (just prints pid if any with -q)
(implies -n)