aboutsummaryrefslogtreecommitdiffstats
path: root/doc/man
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-27 09:04:21 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-27 09:04:21 +0100
commit5eee0be090a525aeed56c3019c7cfa7862990fbf (patch)
treedb58cbc646e0d9de14dabbd6a8a16d01845c8429 /doc/man
parentm makefile (diff)
downloadalarm-5eee0be090a525aeed56c3019c7cfa7862990fbf.tar.gz
alarm-5eee0be090a525aeed56c3019c7cfa7862990fbf.tar.bz2
alarm-5eee0be090a525aeed56c3019c7cfa7862990fbf.tar.xz
add manpage
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--doc/man/alarm.159
1 files changed, 59 insertions, 0 deletions
diff --git a/doc/man/alarm.1 b/doc/man/alarm.1
new file mode 100644
index 0000000..cc81977
--- /dev/null
+++ b/doc/man/alarm.1
@@ -0,0 +1,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