DragonFly On-Line Manual Pages

Search: Section:  


SHLOCK(1)              DragonFly General Commands Manual             SHLOCK(1)

NAME

shlock -- create lock file from shell script

SYNOPSIS

shlock [-d] [-f name] [-p pid] [-u]

DESCRIPTION

The shlock utility tries to create a lock file named name and writes the process id pid into this file. Options: -d Enable debugging. -f name The filename of the lock file. -p pid The process id that will be written to file. -u Use UUCP style lock file format.

EXIT STATUS

The shlock utility exits 0 on success, and >0 if an error occurs.

EXAMPLES

A typical use could be (from within a script): shlock -f script.lock -p $$

HISTORY

The shlock command appeared in DragonFly 1.3. DragonFly 4.3 July 24, 2005 DragonFly 4.3

Search: Section: