1lckdo(1)                                                              lckdo(1)
2
3
4

NAME

6       lckdo - run a program with a lock held
7

SYNOPSIS

9       lckdo [options] {lockfile} {program} [arguments]
10

DESCRIPTION

12       lckdo  runs  a  program  with a lock held, in order to prevent multiple
13       processes from running in parallel. Use just like nice or nohup.
14
15       Now that util-linux contains a similar command named  flock,  lckdo  is
16       deprecated, and will be removed from some future version of moreutils.
17

OPTIONS

19       -w     If  the  lock is already held by another process, wait for it to
20              complete instead of failing immediately.
21
22       -W {sec}
23              The same as -w but wait not more than sec seconds.
24
25       -e     Execute the program directly without forking and waiting  (keeps
26              an extra file descriptor open).
27
28       -E {nnn}
29              Set  the file descriptor number to keep open when exec()ing (im‐
30              plies -e).
31
32       -n     Do not create the lock file if it does not exist.
33
34       -q     Produce no output if lock is already held.
35
36       -s     Lock in shared (read) mode.
37
38       -x     Lock in exclusive (write) mode (default).
39
40       -t     Test for lock existence.
41

EXIT STATUS

43       If the lock was successfully acquired, the return value is that of  the
44       program invoked by lckdo. If the lock couldn't be acquired, EX_TEMPFAIL
45       is returned. If there was a problem  opening/creating  or  locking  the
46       lock file, EX_CANTCREAT or EX_OSERR will be returned.
47
48
49
50                                  2007-08-15                          lckdo(1)
Impressum