shlock man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

SHLOCK(1)		  BSD 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.

EXAMPLES
     A typical use could be (from within a script):

	   shlock -f script.lock -p $$

DIAGNOSTICS
     The shlock command exists with 0 on success or with >0 if there was a
     problem.

HISTORY
     The shlock command appeared in DragonFly 1.3.

BSD				 July 24, 2005				   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net