restart_YPT_AUTO_MONITOR.sh 240 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 #!/bin/bash basepath=$(cd `dirname $0`; pwd) ps -ef | grep "yohoPerformanceTestAuto_Job.sh" | grep -v grep | cut -c 9-15 | xargs kill -9 if [ "$1" == "stop" ];then exit fi ${basepath}/yohoPerformanceTestAuto_Job.sh $1 1>/dev/null 2>&1 &