X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=man%2Fman1%2Ftimeout.1;h=0aab483cccdc0a047b10a76547dc4bee98ea05e5;hb=ecfc96169ab669b578e53fa8e13592934fe37788;hp=ddc70e8ff59a135ac61ec1a71e19714d4e00c082;hpb=fec5529fcc80dc2f8507b8ae1a625089b104dfd9;p=netatalk.git diff --git a/man/man1/timeout.1 b/man/man1/timeout.1 index ddc70e8f..0aab483c 100644 --- a/man/man1/timeout.1 +++ b/man/man1/timeout.1 @@ -1,34 +1,28 @@ -.TH "timeout" "1" "19 Jul 2001" "netatalk 1.5pre7" "The Netatalk Project" - -.SH "NAME" -.LP +.TH timeout 1 "19 Jul 2001" 2.0.0 Netatalk +.SH NAME 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 +.SH SYNTAX +timeout [\-s \fIsignal\fR] \fIseconds\fR \fIprogram\fR [\fIargs\fR] +.SH DESCRIPTION +\fItimeout\fR executes a \fIprogram\fR (with arguments \fIargs\fR) +and sends a \fIsignal\fR to it after a certain +amount of \fIseconds\fR. +.SH OPTIONS +.TP +\fB\-s\fR \fIsignal\fR +Signal to send to the spawned process. This can be a numerical +or symbolic ID. This defaults to \fBTERM\fR. +.SH EXAMPLES .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 +Execute "pap foo.ps" and send a SIGTERM +if \fIpap\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. +.TP +timeout \-s 9 10 evilprog +Execute a program and \fIKILL\fR it +if it doesn't quit after 10 seconds. +