According to Rick Richardson:
> Here are excerpts from my shell script which creates the index,
> showing the config values I'm using.
>
> DIR=rfc
> HERE=/home/httpd/html/$DIR
> DCONF=$HERE/.htdig/htdig.conf
> SCONF=$HERE/.htdig/htsearch.conf
>
> cat <<EOF >> $DCONF
> database_dir: $HERE/.htdig/db
> common_dir: $HERE/.htdig/common
> start_url: http://localhost/$DIR/
> local_urls: http://localhost/$DIR/=/home/httpd/html/$DIR/
> local_user_urls: http:/=/home/,/public_html/
> url_part_aliases: http://localhost/$DIR *$DIR
> EOF
>
> cat <<EOF >> $SCONF
> database_dir: $HERE/.htdig/db
> common_dir: $HERE/.htdig/common
> start_url: http://localhost/$DIR/
> local_urls: http://localhost/$DIR/=/home/httpd/html/$DIR/
> local_user_urls: http:/=/home/,/public_html/
> url_part_aliases: http:$DIR *$DIR
> EOF
>
> One last problem seems to be the construction of the search results
> HTML page. The search.html that I populate in $HERE has this
> line in it:
>
> <form method="post" action="http:/cgi-bin/htsearch?-c$SCONF">
>
> However, when htsearch creates the results page, the HTML it
> generates omits the -c option:
>
> <FORM method="get" action="/cgi-bin/htsearch">
>
> Using only the configuration file, how can I convince htsearch to
> add the -c option to the HTML it generates?
Using the -c option to htsearch is not the preferred approach to specifying
the configuration file. That option is mainly for testing and debugging
purposes. Usually, you specify the configuration file using the "config"
input parameter to htsearch. It's defined as a hidden input parameter
in the sample search.html form that comes with the package. The limitation
with this is the file you specify must be under the CONFIG_DIR directory
defined at compile time. The default value for "config" is "htdig", which
expands to "$CONFIG_DIR/htdig.conf". As long as $SCONF is subordinate to
the compiled-in CONFIG_DIR value, this shouldn't be a problem.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.