projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
062d599
)
Added port parameter and block=1
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 17 Mar 2010 12:52:16 +0000
(13:52 +0100)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 17 Mar 2010 12:52:16 +0000
(13:52 +0100)
perf/bash/client.sh
patch
|
blob
|
history
diff --git
a/perf/bash/client.sh
b/perf/bash/client.sh
index
06aa523
..
aced882
100755
(executable)
--- a/
perf/bash/client.sh
+++ b/
perf/bash/client.sh
@@
-3,9
+3,16
@@
OF=$1
if test -z "$OF"; then
OF=1
fi
if test -z "$OF"; then
OF=1
fi
-H='http://localhost:9004/search.pz2'
-wget -q -O $OF.init.xml "$H/?command=init&service=perf&extra=$OF"
+
+PORT=$2
+if test -z "$PORT"; then
+ PORT=9004
+fi
+
+
+H="http://localhost:${PORT}/search.pz2"
+wget -q -O $OF.init.xml "$H/?command=init&service=perf_t&extra=$OF"
S=`xsltproc get_session.xsl $OF.init.xml`
wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
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 $OF.show.xml "$H?command=show&session=$S"
+sleep 1
+wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1"