(1)利用pgrep 匹配名字 if test $( pgrep -f $1 | wc -l ) -eq 0then echo "进程不存在"else echo "存在进程"fi 还不完善,待续.... 相关文章: