X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perf%2Fbash%2Fpar_timed_forever.sh;h=700c4655c07b40e19cb1eff65b7658d39759d875;hb=044aeb161deeb1401cb68f9c3139c8fe46c62e2a;hp=fe3a7eed70d4d582f40c6d4fcc3e8e573b266138;hpb=1d410a9c5afc25d05e8b05c9b7787c192d11f4c6;p=pazpar2-moved-to-github.git diff --git a/perf/bash/par_timed_forever.sh b/perf/bash/par_timed_forever.sh index fe3a7ee..700c465 100755 --- a/perf/bash/par_timed_forever.sh +++ b/perf/bash/par_timed_forever.sh @@ -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