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