+STAT="command=stat&$SES"
+echo "" > stat.out
+LOOPING=1
+while [ $LOOPING = 1 ]
+do
+ sleep 0.5
+ curl -s "$URL?$STAT" > stat.out
+ ACT=`xml_grep --text_only "//activeclients" stat.out`
+ HIT=`xml_grep --text_only "//hits" stat.out`
+ REC=`xml_grep --text_only "//records" stat.out`
+ echo "$ACT $HIT $REC"
+ if grep -q "<activeclients>0</activeclients>" stat.out
+ then
+ LOOPING=0
+ fi
+ echo >> stats.out
+ cat stat.out >> stats.out
+done
+
+
+SHOW="command=show$SES&sort=relevance_h&start=0&num=1000"