timed-process(1p)

timed-process1p

Run background process for limited amount of time

Usage

timed-process [-e exit_status] timeout command [<arg> [<arg> ...]]

Overview

This script runs command for a specified amount of time and if it doesn't finish, it kills the process. If command runs and exits before the given timeout, timed-process returns the exit value of command. If command did not exit before timeout seconds, then timed-process will kill the process and returns an exit value of 255, unless the -e command line option is set, which instructs timed-process to return a different exit value. This allows the user of timed-process to determine if the process ended normally or was killed.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 7 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0–9
  5. 10
  6. 11
  7. 12
  8. 13

From libproc-background-perl 1.32-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.