监控进程计划任务
syncid1=`ps -ef | grep ‘xxxx.php’ | grep -v “grep” | wc -l` ;if [ $syncid1 -lt 1 ] ;then /usr/local/webserver/php/bin/php xxx.php >> /logs/xxx.log; fi
监控进程计划任务
文章分类 shell
监控进程计划任务
syncid1=`ps -ef | grep ‘xxxx.php’ | grep -v “grep” | wc -l` ;if [ $syncid1 -lt 1 ] ;then /usr/local/webserver/php/bin/php xxx.php >> /logs/xxx.log; fi
发表评论