摘要: #linux查询进程是否存在,如果不存在则启动该进程:#!/bin/bashps_out=`ps -ef | grep $1 | grep -v 'grep' | grep -v $0`result=$(echo $ps_out | grep "$1")if [[ "$result" != "" ] 阅读全文