Debian Codegraph @

upstream/mageia-cauldron/man1/timeout.1

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