Chris D.,
the relevant lines in the file that Chris C. mentioned are
--
# ENVIRONMENT:
# First, establish Koha's two important ENV variables.

PERL5LIB=/usr/share/koha/lib
KOHA_CONF=/etc/koha/koha-conf.xml
--
and
--
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout
the day
# for both authorities and bibs
*/10 * * * *  $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z
>/dev/null
--

Your error  is due to not having properly set the environment.

B.
-- 
Bernardo Gonzalez Kriegel
[email protected]



On Mon, Aug 1, 2011 at 7:09 AM, Chris Downs <[email protected]>wrote:

> Thanks Chris
>
> I'll have a look and let you know the outcome
>
> -----Original Message-----
> From: Chris Cormack [mailto:[email protected]]
> Sent: Monday, 1 August 2011 10:03 p.m.
> To: Chris Downs
> Cc: [email protected]
> Subject: Re: [Koha] Cron Failing $KOHAPATH/bin/migration_tools/
> rebuild_zebra.pl -a
>
> * Chris Downs ([email protected]) wrote:
> >    Hi Everyone,
> >
> >
> >
> >    When trying to run the Cron for Rebuild Zebra using sudo perl
> >    rebuild_zebra.pl ort  perl rebuild_zebra.pl I get the below error
> >
> >
> >
> Take a look at misc/cronjobs/crontab.example
>
> for how to export the variables properly.
>
> Chris
> --
> Chris Cormack
> Catalyst IT Ltd.
> +64 4 803 2238
> PO Box 11-053, Manners St, Wellington 6142, New Zealand
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> [email protected]
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
_______________________________________________
Koha mailing list  http://koha-community.org
[email protected]
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to