首页 > 开发 > Linux Shell > 正文

shell脚本运行5秒后自动退出的代码

2020-07-27 19:25:06
字体:
来源:转载
供稿:网友
复制代码 代码如下:

#!/bin/bash
#name show_status.sh
#echo $$ > /var/run/show_status.log
#sleep 5 && kill `cat /var/run/show_status.log` &
#start code
echo "hello world"
#end code
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表