]> arthur.barton.de Git - netatalk.git/commitdiff
Neue manpage.
authorsrittau <srittau>
Tue, 31 Jul 2001 19:59:35 +0000 (19:59 +0000)
committersrittau <srittau>
Tue, 31 Jul 2001 19:59:35 +0000 (19:59 +0000)
man/man1/Makefile.am
man/man1/timeout.1 [new file with mode: 0644]

index b597d51b797aadb470e3b77b1375f3c9651b8aa5..0d0f5e2a55d5ed397e7de45d15caa63126aa3988 100644 (file)
@@ -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 (file)
index 0000000..ddc70e8
--- /dev/null
@@ -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.