摘要: #!/bin/bash #判断进程是否存在,如果不存在就启动它 PIDS=`ps aux |grep myprocess |grep -v grep | awk '{print $2}'` if [ "$PIDS" != "" ]; then echo "myprocess is runing!" 阅读全文
posted @ 2021-02-25 14:59 鸭子船长 阅读(1531) 评论(0) 推荐(0) 编辑