From: srittau Date: Tue, 31 Jul 2001 19:59:35 +0000 (+0000) Subject: Neue manpage. X-Git-Tag: netatalk-1-5-rc1~310 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=fec5529fcc80dc2f8507b8ae1a625089b104dfd9;p=netatalk.git Neue manpage. --- diff --git a/man/man1/Makefile.am b/man/man1/Makefile.am index b597d51b..0d0f5e2a 100644 --- a/man/man1/Makefile.am +++ b/man/man1/Makefile.am @@ -19,6 +19,7 @@ man_MANS = \ papstatus.1 \ psorder.1 \ single2bin.1 \ + timeout.1 \ unbin.1 \ unhex.1 \ unsingle.1 diff --git a/man/man1/timeout.1 b/man/man1/timeout.1 new file mode 100644 index 00000000..ddc70e8f --- /dev/null +++ b/man/man1/timeout.1 @@ -0,0 +1,34 @@ +.TH "timeout" "1" "19 Jul 2001" "netatalk 1.5pre7" "The Netatalk Project" + +.SH "NAME" +.LP +timeout \- Send a signal to a program after a certain time + +.SH "SYNTAX" +.LP +timeout [\-s \fIsignal\fP] \fIseconds\fP \fIprogram\fP [\fIargs\fP] + +.SH "DESCRIPTION" +.LP +\fBtimeout\fR executes a \fIprogram\fP (with arguments \fIargs\fP) and sends a +\fIsignal\fP to it after a certain amount of \fIseconds\fP. + +.SH "OPTIONS" +.LP +.TP +\fB\-s\fR \fIsignal\fP +Signal to send to the spawned process. This can be a numerical or symbolic ID. +This defaults to \fBTERM\fR. + +.SH "EXAMPLES" +.LP +.TP +timeout 10 pap foo.ps +Execute "pap foo.ps" and send a \fBSIGTERM\fR if \fBpap\fR doesn't return +after 10 seconds. +.TP +timeout -s HUP 60 sh +Spawn a shell and send a hangup signal after one minute. +.TP +timeout -s 9 10 evilprog +Execute a program and \fBKILL\fR it if it doesn't quit after 10 seconds.