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