doalarm
Section: (1)
Updated: December 11, 2001
Index
NAME
doalarm - run a command under a timer
SYNOPSIS
doalarm
[ -rh ]
[ -t TYPE ]
secs command
[
arg ...
]
DESCRIPTION
doalarm
executes
command
under an impending alarm.
The default timer expires with a (normally fatal)
SIGALRM after
secs
real seconds.
Available process timers come in two types: interval
and limit. See
OPTIONS
below for timers and respective signals.
Interval timers may alarm just once, or may recurrently alarm
(-r),
signalling every
secs
seconds.
For interval timers, a
secs
value of zero clears an inherited alarm, if any. For
the limit timer, zero raises
command's
cpu limit to the hard maximum (typically unlimited).
OPTIONS
- -r, --recur
-
Schedule recurrent alarm, ignored if
secs
is zero. Invalid for 'cpu' timer.
- -t TYPE, --timer TYPE
-
Type of timer. Valid values:
-
- cpu
-
SIGXCPU; limit timer.
- real
-
SIGALRM (default); interval timer.
- virtual
-
SIGVTALRM, interval.
- profile
-
SIGPROF; interval.
Only the real timer measures
secs
in real (wall clock) time.
- -h, --help
-
Display help message and exit.
- --version
-
Display version information.
SEE ALSO
time(1), alarm(2), setitimer(2), setrlimit(2), signal(7)
AUTHOR
mjp@pilcrow.madison.wi.us (M.J. Pomraning)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- SEE ALSO
-
- AUTHOR
-