1. 首页
  2. 数据库
  3. 其它
  4. shell脚本运行5秒后自动退出的代码

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

上传者: 2021-01-16 22:02:54上传 PDF文件 14KB 热度 13次
代码如下:#!/bin/bash#name show_status.sh#echo $$ > /var/run/show_status.log#sleep 5 && kill `cat /var/run/show_status.log` &#start codeecho “hello world”#end code
下载地址
用户评论