> On Wed, 17 Mar 2004, Douglas Kline wrote:
> 
> > 
> > In conf/htdig.conf is the line defining 
> > 
> > database_dir with an initial value of var/htdig from wherever your base
> > directory for running ht-Dig is.
> > 
> > In bin/rundig are the lines defining 
> > 
> > DBDIR, COMMONDIR, and BINDIR with initial values of var/htdig, share/htdig,
 and
> > bin, respectively, wherever your base directory for running ht-Dig is.
> > 
> > Which definition of the directory with the databases takes precedence?  Why
> > define it in both files?  Why define the directory with the commands to cre
ate
> 
> Precedence doesn't really come into play with the two sets of
> definitions. The definitions in rundig are for the purpose of
> tasks carried out by the script. Those in htdig.conf are used
> by the various ht://Dig programs.
> 
> Note that rundig is provided simply as an example of how one
> might create a database using the ht://Dig programs. I believe
> it even includes a comment to the effect that it is a sample
> script. The variables defined in the script are specific to the
> script itself and have no relevance beyond their use in the
> script.


Thanks for your response.  The documentation indeed states that the rundig
script is one possible approach and one may compose one's own, different
approach.  However the ambiguity comes in because the variables defined in
rundig and variables for the ostensibly same purposes seem to affect the
commands within the script.  While the variables defined in the script have no
effect without the script, the variables defined in htdig.conf should have
effect within rundig.  So rundig defines DBDIR and then runs the command htdig
which, I would think, gets its definition of the database directory from the
definition of database_dir in htdig.conf.  The variable DBDIR is then used to
rename .work files in $DBDIR to the names used for searches.  So if
database_dir in htdig.conf is defined differently from DBDIR in rundig, htdig
will use the definition of database_dir in htdig.conf for the location of the
databases and then, if the "-a" flag is used, rundig will use DBDIR to
determine in which directory to rename the .work files.

TMPDIR is defined in rundig.  Since the comment in rundig states that the
default location of /tmp for TMPDIR is insecure, shouldn't there be a
definition in http.conf rather than in rundig?

COMMONDIR is defined in rundig and used there to check for the existence of
english.0 and synonyms files but then htfuzzy is called to reference the found
files with no reference to COMMONDIR.  So how does htfuzzy find the files if
COMMONDIR doesn't have its default value?  Since I could find no reference in
htfuzzy either to the variable COMMONDIR or to the value which COMMONDIR is
given in rundig on initial configuration and that value isn't assigned to a
variable in htdig.conf, I wonder how htfuzzy finds the files in COMMONDIR even
if COMMONDIR isn't defined to another value in rundig.

TIA.

Douglas

========
Douglas Kline
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to