| TIMEOUT(1) | General Commands Manual | TIMEOUT(1) |
timeout — run a
command with a time limit
timeout |
[-fp] [-k
time] [-s
signal] duration
command [arg ...] |
The timeout utility executes
command and kills it if it is still running after the
specified duration. If duration
is 0, the timeout is disabled.
The options are as follows:
-f,
--foreground-k
time,
--kill-after=timeSIGKILL, if the command is
still running time after the first signal was
sent.-p,
--preserve-status-s
signal,
--signal=signalSIGTERM.duration and time may contain a decimal fraction. The value defaults to seconds unless a unit suffix is given.
The supported unit suffixes are:
The timeout utility may return one of the
following statuses:
-p flag was not
set.Otherwise, timeout returns the exit status
of the command.
The timeout utility is compliant with the
specification.
The timeout utility first appeared in GNU
Coreutils 7.0 and has been available since OpenBSD
7.0.
| June 16, 2024 | Debian |