8 if test -z "$PORT"; then
12 if test -z "$SERVICE"; then
17 H="http://localhost:${PORT}/search.pz2"
18 wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF"
19 S=`xsltproc get_session.xsl $OF.init.xml`
20 if [ "$SETTINGS" != "" ] ; then
21 wget -q -O $OF.settings.xml "$H?command=settings&session=$S&$SETTINGS"
23 wget -q -O $OF.search.xml "$H?command=search&query=$WHAT&session=$S"
25 wget -q -O $OF.show.xml "$H?command=show&session=$S&sort=relevance&start=0&num=100&block=1"