timeout

version: 0.0.9
timeout [OPTIONS] <duration> <command>...

Start COMMAND, and kill it if still running after DURATION.

Options

--help, -h

Print help information

--version, -V

Print version information

--foreground

when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals; in this mode, children of COMMAND will not be timed out

-k
--preserve-status

exit with the same status as COMMAND, even when the command times out

--signal, -s

specify the signal to be sent on timeout; SIGNAL may be a name like 'HUP' or a number; see 'kill -l' for a list of signals

--verbose, -v

diagnose to stderr any signal sent upon timeout