您现在的位置是:网站首页> 编程资料编程资料
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
您可能感兴趣的文章:
相关内容
- 比较两个字符串是否相等的shell代码_linux shell_
- 五个常用的Linux监控脚本代码_linux shell_
- shell实现数字打印从100到200的数_linux shell_
- 统计 cpu 内存 使用率的shell脚本代码_linux shell_
- 一个用了统计CPU 内存 硬盘 使用率的shell脚本_linux shell_
- shell 进度条实现代码_linux shell_
- awk统计文件中某关键词出现次数的命令_linux shell_
- shell查找当前目录下大于1M的文件的三种方法分享_linux shell_
- expect自动检测并重启另外一台服务器上的程序代码_linux shell_
- 查看某时间段到现在的系统日志的sed命令_linux shell_
