system enabled verified low v1.0.0

timeout

Run a command with a time limit

📋 Live Preview
timeout -f {foreground} -k {kill-after} -p {preserve-status} -s {signal} -v {verbose}
๐Ÿ“Ž foreground ๐Ÿ“Ž kill-after ๐Ÿ“Ž preserve-status ๐Ÿ“Ž signal ๐Ÿ“Ž verbose
timeout -f {foreground} -k {kill-after} -p {preserve-status} -s {signal} -v {verbose}

Sandbox: execFile · Timeout: 30s

Capabilities

system.process.timeout
system.process.list
system.process.signal
system.process.monitor

Parameters

Name Type Required Default Description Aliases
foreground number No - 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 -f, --foreground
kill-after string No - also send a KILL signal if COMMAND is still running this long after the initial signal was sent -k, --kill-after
preserve-status string No - exit with the same status as COMMAND, even when the command times out -p, --preserve-status
signal array No - 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 -s, --signal
verbose number No - diagnose to standard error any signal sent upon timeout --help display this help and exit --version output version information and exit -v, --verbose
help boolean No - --help
version boolean No - --version

Examples

Display help message

timeout --help

Documentation

timeout โ€” Run a command with a time limit

Overview

timeout is a command-line utility for run a command with a time limit.

Usage

timeout -f {foreground} -k {kill-after} -p {preserve-status} -s {signal} -v {verbose}