您现在的位置是:网站首页> 编程资料编程资料

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

2023-05-26 396人已围观

简介 shell脚本运行5秒后自动退出的代码_linux shell_

复制代码 代码如下:

#!/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

-六神源码网