--preserve-status
Exit with the same status as COMMAND, even when the command times out.
An option of timeoutx.
Usage
timeoutx --preserve-status [OPTION] DURATION COMMAND [ARG]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--preserve-status | none | exit with the same status as COMMAND, even when the command times out |
Examples
Keep the command's own exit status after a timeout
timeoutx --preserve-status 1m ./bench.shHelp in the terminal
gnux help timeoutx --preserve-status