#!/bin/bash while [ 1 ] do MD_CAPTURE=`ps -ef|grep "md_capture.py"|grep -v grep|wc -l` if [ ${MD_CAPTURE} == 0 ]; then cd /usr/local/CCDTSoft/midou/moss/task nohup python -u /usr/local/CCDTSoft/midou/moss/task/md_capture.py >> /usr/local/CCDTSoft/midou/moss/task/md_capture.log 2>&1 & fi # sleep 3 done exit
本文出自 “分享是一种美德” 博客,请务必保留此出处http://passers.blog.51cto.com/9686614/1826332
原文地址:http://passers.blog.51cto.com/9686614/1826332