博客地址:http://home.cnblogs.com/u/zengjianrong/

06 2019 档案

摘要:1 #!/bin/bash 2 3 pid=$(ps -T -p $(pgrep xxx) | grep xxx | gawk -F" " '{print $2}') 4 if [ -z $pid ]; then 5 echo "can not find xxx" 6 exit 1 7 fi 8 echo "pid: "$pid 9 prev_runtime=... 阅读全文
posted @ 2019-06-27 21:27 black_man 阅读(1344) 评论(0) 推荐(0) 编辑