From a017945cddcdad88625e28a505f2e6024e53f7cf Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 4 May 2010 16:18:59 +0200 Subject: [PATCH] Add service as 3rd parameter --- perf/bash/client.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perf/bash/client.sh b/perf/bash/client.sh index c48e89e..9f1c4c0 100755 --- a/perf/bash/client.sh +++ b/perf/bash/client.sh @@ -8,10 +8,14 @@ PORT=$2 if test -z "$PORT"; then PORT=9004 fi +SERVICE=$3 +if test -z "$SERVICE"; then + SERVICE=perf +fi H="http://localhost:${PORT}/search.pz2" -wget -q -O $OF.init.xml "$H/?command=init&service=perf&extra=$OF" +wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" S=`xsltproc get_session.xsl $OF.init.xml` wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S" sleep 1 -- 1.7.10.4