Usage: timeout [OPTION] NUMBER[SUFFIX] COMMAND [ARG]...
or: timeout [OPTION]
Start COMMAND, and kill it if still running after NUMBER seconds.
SUFFIX may be `s' for seconds (the default), `m' for minutes,
`h' for hours or `d' for days.
長いオプションに必須の引数は短いオプションにも必須です.
-s, --signal=SIGNAL
specify the signal to be sent on timeout.
SIGNAL may be a name like `HUP' or a number.
See `kill -l` for a list of signals
--help この使い方を表示して終了
--version バージョン情報を表示して終了
If the command times out, then exit with status 124. Otherwise, exit
with the status of COMMAND. If no signal is specified, send the TERM
signal upon timeout. The TERM signal kills any process that does not
block or catch that signal. For other processes, it may be necessary to
use the KILL (9) signal, since this signal cannot be caught.
Report timeout bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: timeout [OPTION] NUMBER[SUFFIX] COMMAND [ARG]...
or: timeout [OPTION]
Start COMMAND, and kill it if still running after NUMBER seconds.
SUFFIX may be `s' for seconds (the default), `m' for minutes,
`h' for hours or `d' for days.
Mandatory arguments to long options are mandatory for short options too.
-s, --signal=SIGNAL
specify the signal to be sent on timeout.
SIGNAL may be a name like `HUP' or a number.
See `kill -l` for a list of signals
--help display this help and exit
--version output version information and exit
If the command times out, then exit with status 124. Otherwise, exit
with the status of COMMAND. If no signal is specified, send the TERM
signal upon timeout. The TERM signal kills any process that does not
block or catch that signal. For other processes, it may be necessary to
use the KILL (9) signal, since this signal cannot be caught.
Report timeout bugs to bug-coreutils@gnu.org
GNU coreutils home page:
timeout(1) The Netatalk Project timeout(1) 名前 timeout - 指定した時間の後、プログラムにシグナルを送る 書式 timeout [-s signal] seconds program [args] 説明 timeout は (引き数 args をつけて) プログラム program を実行し、 seconds 秒経過したら、そのプログラムにシグナル signal を送る。 オプション -s signal 生成したプロセスに送るシグナルを指定する。シグナルは数値 ID でも シンボル ID でもよい。デフォルトは TERM である。 例 timeout 10 pap foo.ps "pap foo.ps" を実行し、10 秒経過しても pap が返ってこない場合に は SIGTERM を送る。 timeout -s HUP 60 sh シェルを生成し、1 分後にハングアップシグナルを送る。 timeout -s 9 10 evilprog プログラムを実行し、10 秒経過しても終了しない場合には KILL を 送 る。 netatalk 1.5pre7 19 Jul 2001 timeout(1)
TIMEOUT(1) User Commands TIMEOUT(1)
NAME
timeout - run a command with a time limit
SYNOPSIS
timeout [OPTION] NUMBER[SUFFIX] COMMAND [ARG]...
timeout [OPTION]
DESCRIPTION
Start COMMAND, and kill it if still running after NUMBER seconds. SUF-
FIX may be ‘s’ for seconds (the default), ‘m’ for minutes, ‘h’ for
hours or ‘d’ for days.
Mandatory arguments to long options are mandatory for short options
too.
-s, --signal=SIGNAL
specify the signal to be sent on timeout. SIGNAL may be a name
like ‘HUP’ or a number. See ‘kill -l‘ for a list of signals
--help display this help and exit
--version
output version information and exit
If the command times out, then exit with status 124. Otherwise, exit
with the status of COMMAND. If no signal is specified, send the TERM
signal upon timeout. The TERM signal kills any process that does not
block or catch that signal. For other processes, it may be necessary
to use the KILL (9) signal, since this signal cannot be caught.
AUTHOR
Written by Padraig Brady.
REPORTING BUGS
Report timeout bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa