您的位置: 首页 > IT文章 > shell脚本运行5秒后自动退出的代码 shell脚本运行5秒后自动退出的代码 分类: IT文章 • 2022-04-10 17:00:06 复制代码 代码如下: #!/bin/bash#name show_status.sh#echo $$ > /var/run/show_status.log#sleep 5 && kill `cat /var/run/show_status.log` &#start codeecho "hello world"#end code