TIMEOUT(1) | 用户命令 | TIMEOUT(1) |
timeout - 在规定时限内运行一个命令
timeout [选项列表]
持续时间 命令
[参数列表]...
timeout [选项列表]
运行所给命令,如果它超过指定时间后仍在运行,则杀死其进程。
必选参数对长短选项同时适用。
--preserve-status
--foreground
-k, --kill-after=持续时间
-s, --signal=信号
持续时间应当是一个浮点数,后缀是可选的:“s”表示秒(默认值),“m”表示分钟,“h”表示小时,或者使用“d”表示天数。若持续时间为 0,将禁用所关联的超时配置。
超时以后,如果没有指定其他“信号”,则向给定“命令”发送 TERM 信号。TERM 信号将杀死没有阻塞或捕获该信号的进程。有时可能需要使用 KILL 信号,因为此信号无法被捕获。
某些平台目前不支持将超时时间设置为超过 2038 年。
由 Padraig Brady 编写。
GNU coreutils 的在线帮助:
<https://www.gnu.org/software/coreutils/>
请向 <https://translationproject.org/team/zh_CN.html>
报告翻译错误。
Copyright © 2022 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
kill(1)
完整文档请见:
<https://www.gnu.org/software/coreutils/timeout>
或者在本地使用: info
'(coreutils) timeout invocation'
本页面中文版由中文
man 手册页计划提供。
中文 man
手册页计划:https://github.com/man-pages-zh/manpages-zh
2022年9月 | GNU coreutils 9.1 |