]> arthur.barton.de Git - netatalk.git/blob - man/man1/timeout.1
ddc70e8ff59a135ac61ec1a71e19714d4e00c082
[netatalk.git] / man / man1 / timeout.1
1 .TH "timeout" "1" "19 Jul 2001" "netatalk 1.5pre7" "The Netatalk Project"
2
3 .SH "NAME"
4 .LP 
5 timeout \- Send a signal to a program after a certain time
6
7 .SH "SYNTAX"
8 .LP 
9 timeout [\-s \fIsignal\fP] \fIseconds\fP \fIprogram\fP [\fIargs\fP]
10
11 .SH "DESCRIPTION"
12 .LP 
13 \fBtimeout\fR executes a \fIprogram\fP (with arguments \fIargs\fP) and sends a
14 \fIsignal\fP to it after a certain amount of \fIseconds\fP.
15
16 .SH "OPTIONS"
17 .LP 
18 .TP 
19 \fB\-s\fR \fIsignal\fP
20 Signal to send to the spawned process. This can be a numerical or symbolic ID.
21 This defaults to \fBTERM\fR.
22
23 .SH "EXAMPLES"
24 .LP
25 .TP
26 timeout 10 pap foo.ps
27 Execute "pap foo.ps" and send a \fBSIGTERM\fR if \fBpap\fR doesn't return
28 after 10 seconds.
29 .TP
30 timeout -s HUP 60 sh
31 Spawn a shell and send a hangup signal after one minute.
32 .TP
33 timeout -s 9 10 evilprog
34 Execute a program and \fBKILL\fR it if it doesn't quit after 10 seconds.