logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

runlock - prevent concurrent execution of a process

Author

runlock was written by Jamie Wilkinson <jaq@google.com>.

Bugs

       Sending SIGALRM to runlock before the timer has expired will cause the subprocess to be killed.

Description

runlock tries to hold an exclusive lock while it executes a command. Subsequent execution of runlock with
       the  same  lock,  while  that  lock  is  held, will cause the new instance of runlock to terminate with a
       failure exit code. Otherwise, the exit code of the subprocess is returned.

Name

       runlock - prevent concurrent execution of a process

See Also

runalarm(1), runstat(1)

Synopsys

runlock [ -h ]

       runlock [ -d ] [ -fpathname ] [ -ttimeout ] command [ args ]

Usage

-d

              Debug mode; send log messages to standard error as well as to the system log.

       -fpathname

              Specifies the pathname of the file to use as a lock file.  The default is to create a lock file in
              /tmp/cronutils-$USER with the name of the command, and suffix ".pid".

       -ttimeout

              Specifies the duration, in seconds, for runlock to wait before giving up on trying to acquire  the
              lock.  The default is 5 seconds.

       -h

              Prints some basic help.

See Also