auto commit by shell by gr
Showing
1 changed file
with
4 additions
and
2 deletions
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | -ps -ef | grep "/opt/jmeter/shell/auto/yohoPerformanceTestAuto_Job.sh" | grep -v grep | cut -c 9-15 | xargs kill -9 | 3 | +basepath=$(cd `dirname $0`; pwd) |
4 | + | ||
5 | +ps -ef | grep "yohoPerformanceTestAuto_Job.sh" | grep -v grep | cut -c 9-15 | xargs kill -9 | ||
4 | 6 | ||
5 | if [ "$1" == "stop" ];then | 7 | if [ "$1" == "stop" ];then |
6 | exit | 8 | exit |
7 | fi | 9 | fi |
8 | -/opt/jmeter/shell/auto/yohoPerformanceTestAuto_Job.sh 1>/dev/null 2>&1 & | 10 | +${basepath}/yohoPerformanceTestAuto_Job.sh 1>/dev/null 2>&1 & |
-
Please register or login to post a comment