Debian Codegraph @

upstream/opensuse-leap-16-1/man1/timeout.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH TIMEOUT "1" "June 2025" "GNU coreutils 9.6" "User Commands"
3 .SH NAME
4 timeout \- run a command with a time limit
5 .SH SYNOPSIS
6 .B timeout
7 [\fI\,OPTION\/\fR] \fI\,DURATION COMMAND \/\fR[\fI\,ARG\/\fR]...
8 .br
9 .B timeout
10 [\fI\,OPTION\/\fR]
11 .SH DESCRIPTION
12 .\" Add any additional description here
13 .PP
14 Start COMMAND, and kill it if still running after DURATION.
15 .PP
16 Mandatory arguments to long options are mandatory for short options too.
17 .HP
18 \fB\-f\fR, \fB\-\-foreground\fR
19 .IP
20 when not running timeout directly from a shell prompt,
21 .IP
22 allow COMMAND to read from the TTY and get TTY signals;
23 in this mode, children of COMMAND will not be timed out
24 .HP
25 \fB\-k\fR, \fB\-\-kill\-after\fR=\fI\,DURATION\/\fR
26 .IP
27 also send a KILL signal if COMMAND is still running
28 .IP
29 this long after the initial signal was sent
30 .HP
31 \fB\-p\fR, \fB\-\-preserve\-status\fR
32 .IP
33 exit with the same status as COMMAND,
34 .IP
35 even when the command times out
36 .HP
37 \fB\-s\fR, \fB\-\-signal\fR=\fI\,SIGNAL\/\fR
38 .IP
39 specify the signal to be sent on timeout;
40 .IP
41 SIGNAL may be a name like 'HUP' or a number;
42 see 'kill \fB\-l\fR' for a list of signals
43 .TP
44 \fB\-v\fR, \fB\-\-verbose\fR
45 diagnose to stderr any signal sent upon timeout
46 .TP
47 \fB\-\-help\fR
48 display this help and exit
49 .TP
50 \fB\-\-version\fR
51 output version information and exit
52 .PP
53 DURATION is a floating point number with an optional suffix:
54 \&'s' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days.
55 A duration of 0 disables the associated timeout.
56 .PP
57 Upon timeout, send the TERM signal to COMMAND, if no other SIGNAL specified.
58 The TERM signal kills any process that does not block or catch that signal.
59 It may be necessary to use the KILL signal, since this signal can't be caught.
60 .SS "Exit status:"
61 .TP
62 124
63 if COMMAND times out, and \fB\-\-preserve\-status\fR is not specified
64 .TP
65 125
66 if the timeout command itself fails
67 .TP
68 126
69 if COMMAND is found but cannot be invoked
70 .TP
71 127
72 if COMMAND cannot be found
73 .TP
74 137
75 if COMMAND (or timeout itself) is sent the KILL (9) signal (128+9)
76 .TP
77 \-
78 the exit status of COMMAND otherwise
79 .SH BUGS
80 Some platforms don't currently support timeouts beyond the year 2038.
81 .SH AUTHOR
82 Written by Padraig Brady.
83 .SH "REPORTING BUGS"
84 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
85 .br
86 Report any translation bugs to <https://translationproject.org/team/>
87 .SH COPYRIGHT
88 Copyright \(co 2025 Free Software Foundation, Inc.
89 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
90 .br
91 This is free software: you are free to change and redistribute it.
92 There is NO WARRANTY, to the extent permitted by law.
93 .SH "SEE ALSO"
94 \fBkill\fP(1)
95 .PP
96 .br
97 Full documentation <https://www.gnu.org/software/coreutils/timeout>
98 .br
99 or available locally via: info \(aq(coreutils) timeout invocation\(aq