Added port parameter and block=1
[pazpar2-moved-to-github.git] / perf / bash / client.sh
1 #!/bin/bash
2 OF=$1
3 if test -z "$OF"; then
4         OF=1
5 fi
6
7 PORT=$2
8 if test -z "$PORT"; then
9         PORT=9004
10 fi
11
12
13 H="http://localhost:${PORT}/search.pz2"
14 wget -q -O $OF.init.xml "$H/?command=init&service=perf_t&extra=$OF"
15 S=`xsltproc get_session.xsl $OF.init.xml`
16 wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
17 sleep 1
18 wget -q -O $OF.show.xml "$H?command=show&session=$S&num=100&block=1"