~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to man/man1/timeout.1

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.