Add WAIT between multi-sessions
[pazpar2-moved-to-github.git] / perf / bash / client.sh
index a1072f3..06aa523 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash
-O=$1
-if test -z "$O"; then
-       O=1
+OF=$1
+if test -z "$OF"; then
+       OF=1
 fi
 H='http://localhost:9004/search.pz2'
-wget -q -O $O.init.xml "$H/?command=init&service=perf"
-S=`xsltproc get_session.xsl $O.init.xml`
-wget -q -O $O.search.xml "$H?command=search&query=utah&session=$S"
+wget -q -O $OF.init.xml "$H/?command=init&service=perf&extra=$OF"
+S=`xsltproc get_session.xsl $OF.init.xml`
+wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
 sleep 0.5
-wget -q -O $O.show.xml "$H?command=show&session=$S"
+wget -q -O $OF.show.xml "$H?command=show&session=$S"