XSL files now in sync with future 1.7 series
[pazpar2-moved-to-github.git] / perf / bash / par_timed_forever.sh
old mode 100644 (file)
new mode 100755 (executable)
index fe3a7ee..700c465
@@ -1 +1,16 @@
-while true ; do sh par_fixed_clients.sh 20 9005 perf_t ; done 
+COUNT=20
+if [ "$1" != "" ] ; then
+    COUNT=$1
+fi
+PORT=9004
+if [ "$2" != "" ] ; then
+    PORT=$2
+fi
+# If not specifying SERVICE, using default
+if [ "$3" != "" ] ; then
+    SERVICE=$3
+fi
+while true ; do 
+    export TMP_DIR=pid_$$/run_`date +"%Y%m%d_%H%M%S"`/
+    sh par_fixed_clients.sh $COUNT $PORT $SERVICE ; 
+done