首页 > 系统 > Linux > 正文

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

2019-10-26 18:35:51
字体:
来源:转载
供稿:网友
代码如下:
#!/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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表