shell 腳本 監測 php腳本是否在執行!

#! /bin/bash while [ true ] do pro=`ps -ef | grep ""sendEmailRedis | grep -v 'grep' | wc -l` #過濾出目標進程信息,若是pro爲空串說明目標進程未運行 #反向過濾掉grep進程 和 本進程信
相關文章
相關標籤/搜索