Script won't run from cron

Andy Smith andy at freebsdwiki.org
Fri May 21 11:28:26 PDT 2004


On Fri, May 21, 2004 at 08:20:04PM +1200, Andrew McNaughton wrote:
> 
> Since upgrading from 4.5-RELEASE to 4.8-RELEASE (actually rebuilding the
> system and mounting the old /home directory), I'm having problems with a
> process which rebuilds a search engine index.  Everything runs fine from
> the command line, but the same script fails when running from cron.
> 
> The /bin/sh script runs, but when it goes to fire up the indexing process,
> that process fails.

You need to figure out a way to get your program to tell you *what*
exactly fails.  A lot of things are different from cron - the most
often noticed one being that you have a much shorter PATH - so maybe
that is it.  But if not, it will save you time to get your
application to report what exactly it is doing that fails.

-- 
http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040521/8979cd0c/attachment.bin


More information about the freebsd-questions mailing list