On Thu, 1 Nov 2001, Wolfgang Mueller wrote:

> The main problem I see is that I think a purely command line version of htdig 
> would be cool. Purely commandline in the sense that you can write some shell 
> that sais:
> 
> /path/to/htsearch --no-cgi --query-string="eggs and bacon" --sorted-by=score 
> >> results.xml

It's certainly not this "human readable," but you can certainly run
htsearch from the shell. For example many people have Perl or shell or
PHP "wrappers" around htsearch.

You can either set the QUERY_STRING environment variable, or supply the
query string on the command-line, e.g. (this may not quite be right--I
don't have a working example handy)

export REQUEST_METHOD=GET
export QUERY_STRING="config=..."
htsearch

or

htsearch "config=..."

> to call htsearch by a batch, and I would also like to get rid of the http 
> headers in the output(or did I overlook something??)

Gilles just commited a patch to 3.1.6 to do this--either to set the header
to another MIME type or to ignore it altogether.

In short, there's little reason your search-side situation isn't all that
different from another PHP/Perl wrapper.

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/


_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to