Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

runlock(1) [debian man page]

RUNLOCK(1)						      General Commands Manual							RUNLOCK(1)

NAME
runlock - prevent concurrent execution of a process SYNOPSYS
runlock [ -h ] runlock [ -d ] [ -f pathname ] [ -t timeout ] command [ args ] 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 faliure exit code. Otherwise, the exit code of the subprocess is returned. USAGE
-d Debug mode; send log messages to standard error as well as to the system log. -f pathname 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". -t timeout 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. BUGS
Sending SIGALRM to runlock before the timer has expired will cause the subprocess to be killed. SEE ALSO
runalarm(1), runstat(1) AUTHOR
runlock was written by Jamie Wilkinson <jaq@google.com>. COPYRIGHT
This program is copyright (C) 2010 Google, Inc. It is licensed under the Apache License, Version 2.0 Google, Inc. October 18, 2010 RUNLOCK(1)

Check Out this Related Man Page

RUNSTAT(1)						      General Commands Manual							RUNSTAT(1)

NAME
runstat - collect statistics about execution of a process SYNOPSYS
runstat [ -h ] runstat [ -d ] [ -f pathname ] command [ args ] DESCRIPTION
runstat tries to execute a command in a subprocess, and upon termination of the subprocess collects some statistics about that subprocess, and writes them to a file. These statistics include time of execution, exit status, and elapsed time to execute, as well as use of various OS resources. USAGE
-d Debug mode; send log messages to standard error as well as to the system log. -f pathname Specifies the pathname of the file to save the statistics to. The default is to create a file in /tmp/cronutils-$USER with the name of the command, and suffix ".stat". -h Prints some basic help. SEE ALSO
runalarm(1), runlock(1), getrusage(2) AUTHOR
runstat was written by Jamie Wilkinson <jaq@google.com>. COPYRIGHT
This program is copyright (C) 2010 Google, Inc. It is licensed under the Apache License, Version 2.0 Google, Inc. October 18, 2010 RUNSTAT(1)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to prevent job1 from running while job2 is running..

Hi, Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies

2. UNIX for Dummies Questions & Answers

Error in messages file

I am receiving a repeating error in my /var/adm/messages, and I did a full Google search and search on this site. This site had 1 hit, but didn't really explain why it's occurring, Google didn't return much of value. Perhaps someone here has a potential fix: Mar 20 07:17:52 <server_name>... (1 Reply)
Discussion started by: FredSmith
1 Replies

3. Google Chrome OS

Google Chrome Operating System

Google Chrome OS is an open source Google project and will be available to use at no cost in 2010, initially be targeted at netbooks. In 2009, Google will open-source Chrome OS code. The software architecture is Google Chrome running within a new window manager on top of the Linux kernel. ... (20 Replies)
Discussion started by: Neo
20 Replies

4. UNIX for Dummies Questions & Answers

Sending through an external e-mail account

Hi guys. After several Google hours, i've failed to find a solution to my problem, maybe my google skills arent that good - but i hope someone could help me figure this out. I'm running a ubuntu server 11.04 with postfix installed. I have installed Request tracker 4 and configured it to read... (2 Replies)
Discussion started by: spirm8
2 Replies