Skip to main content.
home | support | download

Back to List Archive

Re: SOLUTION: terminal indexing works; cron indexing fails

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Sep 22 2006 - 17:39:40 GMT
On Fri, Sep 22, 2006 at 08:31:34AM -0700, Dan Stieneke wrote:
> OpenBSD 3.9, swish-e 2.4.2 (2.4.3 won't compile on OpenBSD *sigh*)
> 
> Problem:
> Indexing from terminal was perfect. From cron, it indexed the postscript commands of my .PDF files - huge *and* useless. Tried to emulate my terminal environment w/in cron, but no luck. Searched the archives, found others with similar cron problems.
> 
> Solution: change cron command from
> "/root/scripts/reindex_website.sh" to "ssh localhost
> /root/scripts/reindex_website.sh". SSH environment is identical to
> terminal environment, so cron index works now.

Or how about something like:


    20 2 * * *    . $HOME/.bashrc & /root/scripts/reindex_website.sh

-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Fri Sep 22 10:39:44 2006