From: Dennis Schafroth Date: Wed, 19 May 2010 20:07:07 +0000 (+0200) Subject: client.sh support for settings. X-Git-Tag: v1.4.1~12^2~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=69c8857dad8bd20b04efe2cdbbd6568bdf05547b;p=pazpar2-moved-to-github.git client.sh support for settings. If a 4th parameter is present this must be the values for a command=setting. When running ensure that the chars are correctly escaped if required. --- diff --git a/perf/bash/client.sh b/perf/bash/client.sh index 9f1c4c0..13b05ce 100755 --- a/perf/bash/client.sh +++ b/perf/bash/client.sh @@ -12,11 +12,14 @@ SERVICE=$3 if test -z "$SERVICE"; then SERVICE=perf fi - - +SETTINGS=$4 +WHAT=water H="http://localhost:${PORT}/search.pz2" 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" +if [ "$SETTINGS" != "" ] ; then + wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS" +fi +wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S" sleep 1 wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1"