runalarm(1)

runalarm1

Enforce a time limit on execution of a process

Synopsys

runalarm [ -h ]

runalarm [ -d ] [ -t timeout ] command [ args ]

Overview

runalarm tries to execute a command and, if the subprocess does not exit before a timer expires, tries to terminate that subprocess. Otherwise, the exit status of the command is returned.

Usage

-d

Debug mode; send log messages to standard error as well as to the system log.

-t timeout

Specifies the duration, in seconds, for runalarm to allow the command to run. The default is 1d duration (86400 seconds).

-h

Prints some basic help.

Releases

Unchanged in 7 releases since Debian 7 (Wheezy).

  1. 7–13

Bugs

Sending SIGALRM to runalarm before the timer has expired will cause the subprocess to be killed.

Author

runalarm was written by Jamie Wilkinson <[email protected]>, based on some Python code by Craig Silverstein

From cronutils 1.10-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.