Skip to Content
gnux

-k, --kill-after

Also send a KILL signal if COMMAND is still running this long after the initial signal was sent (DURATION).

An option of timeoutx.

Usage

timeoutx -k DURATION [OPTION] DURATION COMMAND [ARG]...
timeoutx --kill-after=DURATION [OPTION] DURATION COMMAND [ARG]...

Details

ShortLongValueDefaultMeaning
-k--kill-afterDURATIONalso send a KILL signal if COMMAND is still running this long after the initial signal was sent (DURATION)

Examples

Kill a server that ignores TERM 10 seconds after asking it to stop

timeoutx -k 10s 1h ./server

Help in the terminal

gnux help timeoutx --kill-after

On this page