|timeout(1)||run a command with a time limit|
|timeout, timeout_set, timeout_add, timeout_add_msec, timeout_add_nsec, timeout_add_sec, timeout_add_tv, timeout_add_usec, timeout_barrier, timeout_del, timeout_del_barrier, timeout_initialized, TIMEOUT_INITIALIZER, TIMEOUT_INITIALIZER_FLAGS, timeout_pending, timeout_set_flags, timeout_set_proc, timeout_triggered(9)||execute a function after a specified period of time|
|curs_inopts, cbreak, echo, halfdelay, intrflush, keypad, meta, nocbreak, nodelay, noecho, noqiflush, noraw, notimeout, qiflush, raw, timeout, typeahead, wtimeout(3)||curses input options|
|TIMEOUT(1)||General Commands Manual||TIMEOUT(1)|
timeout — run a
command with a time limit
timeout utility executes
command, with any args, 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:
SIGKILL, if the command is still running time after the first signal was sent.
duration and time may contain a decimal fraction. The value defaults to seconds unless a unit suffix is given.
The supported unit suffixes are:
If the timeout was not reached or
--preserve-status was set, the exit status of
command is returned.
If the timeout was reached and
--preserve-status was not set, an exit status of 124
If command exited after receiving a signal, the exit status returned is the signal number plus 128.
timeout utility first appeared in GNU
Coreutils 7.0 and has been available since OpenBSD
|September 4, 2021||OpenBSD-current|