Jonathan Swartz > Proc-ProcessTable-0.46 > contrib/pswait

Download:
Proc-ProcessTable-0.46.tar.gz

Annotate this POD

CPAN RT

New  18
Open  6
Stalled  1
View/Report Bugs
Source   Latest Release: Proc-ProcessTable-0.51

PSWAIT ^

pswait - waiting for process(es) to end before doing things

SYNOPSIS pswait [options] [process ID|NAME ...] ^

USAGE pswait [options] [process ID|NAME ...] ^

   Options:
       -h --help            brief help message
       -v --verbose         be verbose
       -e --exit            exit after first process end
       -s x  --sleep x      set sleep time to x second (default to 1)

OPTIONS ^

-e, --exit

When giving a list of process to watch, exit when the first process end, it is usefull to easily manage a pool of proces with a shell script.

-h. --help

Print a brief help message and exits.

-s x, --sleep x

set sleep time to x seconds between process checking, default to 1 second. On small machines (or overloaded machines) it could help to check process state only once every minutes instead, using for example -s 60

-v, --verbose

Inform you on what happening ... which process ends, which process ID are watched for state (usefull when using process names on command line).

DESCRIPTION ^

pswait will read the process table of the system and wait for some process to end

AUTHOR ^

DominiX <dominix@despammed.com>

syntax highlighting: