restart_YPT_AUTO_MONITOR.sh 240 Bytes
#!/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 &