📜  bash 最大运行时间 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:33.703000             🧑  作者: Mango

代码示例1
timeout -s ${kill_signal} --preserve-status ${maxrun} /root/mon-lastdata.sh

example:
timeout -s 9 --preserve-status 100 /root/mon-lastdata.sh

-s 9 is equivalent to kill -9