8 if test -z "$PORT"; then
13 if test -z "$SERVICE"; then
20 H="http://localhost:${PORT}/search.pz2"
23 /usr/bin/time --format "$OF, init, %e" wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF" 2> $OF.init.time
24 S=`xsltproc get_session.xsl $OF.init.xml`
25 /usr/bin/time --format "$OF, search, %e" wget -q -O $OF.search.xml "$H?command=search&query=${QUERY}&session=$S" 2> $OF.search.time
29 while [ ${DO_DISPLAY} ] ; do
30 SLEEP=$[ ($RANDOM % $MAX_WAIT ) ]
33 /usr/bin/time --format "$OF, show2, %e" wget -q -O $OF.show.$r.xml "$H?command=show&session=$S&start=$r&num=${NUM}&block=1" 2>> $OF.show.time
34 AC=`xsltproc get_activeclients.xsl ${OF}.show.$r.xml`
35 if [ "$AC" != "0" ] ; then
36 echo "Active clients: ${AC}"
42 if [ $r -ge $RECORDS ] ; then