LCKDO(1) | moreutils | LCKDO(1) |
lckdo - run a program with a lock held
lckdo [options] {lockfile} {program} [arguments]
lckdo runs a program with a lock held, in order to prevent multiple processes from running in parallel. Use just like nice or nohup.
Now that util-linux contains a similar command named flock, lckdo is deprecated, and will be removed from some future version of moreutils.
-w
-W {sec}
-e
-E {nnn}
-n
-q
-s
-x
-t
If the lock was successfully acquired, the return value is that of the program invoked by lckdo. If the lock couldn't be acquired, EX_TEMPFAIL is returned. If there was a problem opening/creating or locking the lock file, EX_CANTCREAT or EX_OSERR will be returned.
Michael Tokarev
2007-08-15 | moreutils |