Man Pages

timeout - phpMan timeout - phpMan

Command: man perldoc info search(apropos)  


File: coreutils.info,  Node: timeout invocation,  Prev: su invocation,  Up: Modified command invocation

23.7 `timeout': Run a command with a time limit
===============================================

`timeout' runs the given COMMAND and kills it if it is still running
after the specified time interval.  Synopsis:

     timeout [OPTION] NUMBER[smhd] COMMAND [ARG]...

   NUMBER is an integer followed by an optional unit; the default is
seconds.  The units are:

`s'
     seconds

`m'
     minutes

`h'
     hours

`d'
     days

   COMMAND must not be a special built-in utility (*note Special
built-in utilities::).

   The program accepts the following option.  Also see *note Common
options::.  Options must precede operands.

`-s SIGNAL'
`--signal=SIGNAL'
     Send this SIGNAL to COMMAND on timeout, rather than the default
     `TERM' signal. SIGNAL may be a name like `HUP' or a number. Also
     see *Note Signal specifications::.


   Exit status:

     124 if COMMAND times out
     125 if `timeout' itself fails
     126 if COMMAND is found but cannot be invoked
     127 if COMMAND cannot be found
     the exit status of COMMAND otherwise