Query: timeout
OS: freebsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIMEOUT(1) BSD General Commands Manual TIMEOUT(1)NAMEtimeout -- run a command with a time limitSYNOPSIStimeout [--signal sig | -s sig] [--preserve-status] [--kill-after time | -k time] [--foreground] <duration> <command> <args ...>DESCRIPTIONtimeout starts the command with its args. If command is still running after duration, it is killed. By default, SIGTERM. is sent. --preserve-status Always exits with the same status as command even if it times out. --foreground Do not propagate timeout to the command children. -s sig, --signal sig Specify the signal to send on timeout. By default, SIGTERM. is sent. -k time, --kill-after time Send a second kill signal if command is still running after time after the first signal was sent.DURATION FORMATduration and time can be integer or decimal numbers. Values without unit symbols are interpreted as seconds. Supported unit symbols are: s seconds m minutes h hours d daysEXIT STATUSIf the timeout was not reached, the exit status of command is returned. If the timeout was reached and --preserve-status is set, the exit status of command is returned. If --preserve-status is not set, an exit status of 124 is returned. If command exits after receiving a signal, the exit status returned is the signal number plus 128. If command is an invalid command, the exit status returned is 126. If command is a non existing command, the exit status returned is 127. If an invalid parameter is passed to -s or -k, the exit status return is 125.SEE ALSOkill(1), signal(3)BSDOct 28, 2014 BSD
Related Man Pages |
---|
hatimerun(1m) - opensolaris |
timeout(1) - debian |
timeout(1) - freebsd |
timeout(1) - bsd |
timeout(1) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
waitmax 1.1 (Default branch) |
time function |
Output to file but append rather than overwrite? |
kill a command I am running / then put it to background |
Copy duration of cp |