Skip to Content
gnux

--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

ShortLongValueDefaultMeaning
--preserve-statusnoneexit 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.sh

Help in the terminal

gnux help timeoutx --preserve-status

On this page