$sh = 'ps aux|grep -v grep|grep "/data/wwwroot/project/public/work.php"'; $output = shell_exec($sh); if(!$output){ $title = 'qmzg workman shutdown'; $content = '进程挂了:/data/wwwroot/project/public/work.php'; }else{ echo '正常'; }
$sh = 'ps aux|grep -v grep|grep "/data/wwwroot/project/public/work.php"'; $output = shell_exec($sh); if(!$output){ $title = 'qmzg workman shutdown'; $content = '进程挂了:/data/wwwroot/project/public/work.php'; }else{ echo '正常'; }