2012年10月11日
摘要: #! /bin/bash# author caoxin# time 2012-10-10 # program : 判断进行是否存在,并重新启动function check(){ count=`ps -ef |grep $1 |grep -v "grep" |wc -l` #echo $count if [ 0 == $count ];then nohup python /runscript/working/$1 & fi}check behaviors.py参考的网址为: http://blog.csdn.net/shangpusp/arti... 阅读全文
posted @ 2012-10-11 11:25 mingaixin 阅读(15523) 评论(0) 推荐(1) 编辑