timeout − run command with bounded time
timeout [-signal] time command ...
timeout executes a command and imposes an elapsed time limit. The command is run in a separate POSIX process group so that the right thing happens with commands that spawn child processes.
Arguments:
-signal
Specify an optional signal to send to the controlled process. By default, timeout sends SIGKILL, which cannot be caught or ignored. The signal must be provided in its numerical value.
time |
The elapsed time limit in seconds after which the command is terminated. |
command
The command to be executed.
timeout’s exit status is the exit status of the specified command or 1 in case of a usage error.
Wietse Venema
This program is part of SATAN.