> shell编程 >

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

shell脚本运行5秒自动退出的代码,供大家学习参考。


 代码如下:
#!/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


(责任编辑:IT)