1lckdo(1)                    General Commands Manual                   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

OPTIONS

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

EXIT STATUS

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