Re: htdig: Searching not working?


Chris Owen (listsonly@gcnet.com)
Thu, 18 Jun 1998 21:32:42 -0500 (CDT)


On Fri, 19 Jun 1998 webmaster@www.nisu.flinders.edu.au wrote:

> On 18 Jun, Chris Owen wrote:
> >
> > Probably me. We have not been able to get rundig (or more specifically
> > htmerge) to run from cron for several weeks.
> >
> > It fails every time it is run from cron. Running it manually (even in the
> > background) works flawlessly, but running htmerge from cron gets "Word
> > Sort Failed" every time. Prior to this it worked fine and it still works
> > fine on a second (nearly identical) machine, but on this machine all 4-5
> > instances of rundig fail with the same error when run from cron.
>
> Is it possible that, because of the different environment in which cron
> runs, that rundig is unable to find 'sort'?
>
> Try exporting the path to 'sort' in rundig and see if this helps.

I was hoping that might be true, but I ran a few tests and that isn't it.
I had a cron task email me the path and it is correct. Also while the
htdig process is running sort does indeed run:

  768 ? S 0:00 sh /root/scripts/htdig/bin/rundig
  771 ? S 0:00 /usr/sbin/sendmail -FCronDaemon -odi -oem -or0s root
  772 ? D 0:01 /root/scripts/htdig/bin/htmerge -s
  773 ? S 0:11 /bin/sort /root/scripts/htdig/db/db.wordlist

In fact, everything looks good until the last second when it just says
"Sort Failed".

Chris

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chris Owen             ~  Lottery: A stupidity tax
PO Box 1985            ~  owenc@gcnet.com
Garden City, KS 67846  ~  http://www.gardencity.net/~owenc/
Voice: (316) 275-1900  ~  ftp://ftp.gardencity.net/pub/owenc/
Fax:   (316) 275-0313  ~  88 FA CF C6 65 23 63 C1  6E 80 AE 0B 51 C0 22 36
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------- To unsubscribe from the htdig mailing list, send a message to htdig-request@sdsu.edu containing the single word "unsubscribe" in the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:26:34 PST