aboutsummaryrefslogtreecommitdiffstats
path: root/doc/man/alarm.1
blob: cc81977675741ef692771a9f000de1de919d641a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.TH ALARM 1 ALARM
.SH NAME
alarm - Schedule an alarm for a program when starting it
.SH SYNOPSIS
.BR alarm
.IR DURATION
.IR COMMAND
.RI [ ARGS ...]
.SH DESCRIPTION
Schedules an
.BR alarm (3)
to best triggered after a specified
.IR DURATION .
The process than
.BR execvp (3)
into
.IR COMMAND\ ARGS .
.PP
This means that
.IR COMMAND
will be killed by
.BR SIGALRM
after a selected
.IR DURATION .
.PP
.IR DURATION
must be a non-negative integer, no larger than 18h12m15s.
Recognised patterns for
.IR DURATION
are:
.TP
*
.IR SECONDS [s]
.TP
*
.IR MINUTES m[ SECONDS s]
.TP
*
.IR HOURS h[ MINUTES m][ SECONDS s]
.SH RATIONALE
This program is useful when testing programs for a limited
duration. Especially when running in the background, or
there is a chance of it locking the computer.
.SH "SEE ALSO"
.BR alarm (3)
.SH AUTHORS
Principal author, Mattias Andrée.  See the COPYING file for the full
list of authors.
.SH LICENSE
Copyright \(co 2014, 2015  Mattias Andrée
.br
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
.br
There is NO WARRANTY, to the extent permitted by law.
.SH BUGS
Please report bugs to https://github.com/maandree/alarm/issues or to
maandree@member.fsf.org