At 10:33 AM +0100 1/13/02, Stefan Wehowsky wrote:
>Is there any way that I can tell htsearch to use a configureation file
>that does not only have a different name than "htdig" but is also in a
>completely different directory ? the "config" directive in the search
>form only permits altering the name of the config file, but not the
>path...

The easiest, most secure way to do this is with a small "wrapper" 
script and the CONFIG_DIR environment variable. Set the CONFIG_DIR 
variable as you wish and then call htsearch.

e.g.
#!/bin/sh

CONFIG_DIR=/path/to/config "$0"-real ${@+"$@"}

The "$0"-real evaluates to /path/to/htsearch-real which is the actual 
htsearch binary.

You can also do this in Perl, PHP, etc.
-- 
--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to