Hello,

I'll try to explain this as best as I can. My system will not keep an environment
variable for some reason.

The 'rundig' script sets the environment which I require. That is the TMPDIR=/ var.
In my case, I set it to 'export TMPDIR=/netserv/tmp'. Htdig uses the tmp directory
properly but for some strange reason, it is always lost by the time htmerge is run.

In other words, while the dig runs, htdig uses /netserv/tmp but the moment that htmerge
runs, it uses the main dirve /tmp for some reason.

I am completely stumped on this one. I am running Red Hat 6.2 for the dig and am trying
to tell htdig/htmerge to use /netserv/tmp as it's work directory. Since it won't, I 
have
spent a great deal of time running digs that later htmrge cannot update properly. I end
up with a small (2K) db.docs.index file which htmerge never updates and large work 
files
that also become useless. I have also run htmerge manually while the env var was set 
and
it worked fine during the test but I still need this to be done for the entire dig.

I have searched and searched and have found many ways of setting a variable and they 
all
work just fine. However, since I have to manually call a dig and then log off, the env
var is lost when the shell exits.

What I need to do is to set the variable in a manner that makes it global, system wide 
on
boot up. I've also tried to set this in rc.local so that it would be set at boot time. 
I
just can't seem to find a way to have the system set the following var so that it is
there, all the time.

export TMPDIR=/netserv/tmp

Anyhow, sorry that this is so verbose but better explained than not :).


Mike



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

Reply via email to