From 0f3effbebaaab4a844843017c985e358c61a4cb1 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 29 May 2012 11:28:24 +0200 Subject: [PATCH] Support TMP_DIR from caller. --- perf/bash/par_fixed_clients.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perf/bash/par_fixed_clients.sh b/perf/bash/par_fixed_clients.sh index 04d8524..a441589 100755 --- a/perf/bash/par_fixed_clients.sh +++ b/perf/bash/par_fixed_clients.sh @@ -12,8 +12,10 @@ PORT=$2 SERVICE=$3 CLIENT_SCRIPT="client_timed.sh" rm -f *.time -export TMP_DIR=run_`date +"%Y%m%d_%H%M%S"`/ -mkdir ${TMP_DIR} +if [ "$TMP_DIR" == "" ] ; then + export TMP_DIR=run_`date +"%Y%m%d_%H%M%S"`/ +fi +mkdir -p ${TMP_DIR} rm -f latest ln -s ${TMP_DIR} latest while test $r -lt $ROUNDS; do -- 1.7.10.4