(coreutils.info)timeout invocation


Prev: su invocation Up: Modified command invocation
Enter node , (file) or (file)node

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


automatically generated by info2www version 1.2.2.9