Linux后台监控脚本

    #!/bin/sh<br>while true; do<br> ss7pid=`ps -ef|grep ss7d|awk '/shcti/{print $2}'`<br> if test -z $ss7pid;then<br>  /usr/local/lib/shcti/ver4.7.17/ss7/ss7d &amp;<br>  echo `date +'%y-%m-%d %t'` find  stop, start... >> ss7monitor.log<br> fi<br> sleep 5<br>done
 

猜你喜欢

转载自bd2007.iteye.com/blog/1151075