wecisecode 1 주 전
부모
커밋
baff9e6c7f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      odbctest/mql/mqltest.sh

+ 3 - 1
odbctest/mql/mqltest.sh

@@ -49,7 +49,9 @@ if [[ "${filescount}" == "0" ]]; then
     exit $?
 fi
 if [[ "${filescount}" == "1" ]]; then
-    logfile="${keyspace}.1test.log"
+    n=`ps -ef | grep "mql %@" | grep -v grep | wc -l`
+    n=`expr $n + 1`
+    logfile="${keyspace}.${n}test.log"
     ./mql "$@" 2>&1 | tee ${logfile}
     exit $?
 fi