wecisecode hai 1 semana
pai
achega
baff9e6c7f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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