<div>Chris D.,</div>the relevant lines in the file that Chris C. mentioned are<div>--</div><div><div># ENVIRONMENT:</div><div># First, establish Koha's two important ENV variables.</div><div><br></div><div>PERL5LIB=/usr/share/koha/lib</div>
<div>KOHA_CONF=/etc/koha/koha-conf.xml</div><div>--</div><div>and</div><div>--</div><div># ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day</div><div># for both authorities and bibs</div><div>
*/10 * * * * $KOHA_CRON_PATH/../migration_tools/<a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a> -b -a -z >/dev/null</div><div>--</div><div><br></div><div>Your error is due to not having properly set the environment.</div>
<div><br></div><div>B.</div>-- <div>Bernardo Gonzalez Kriegel</div><div><a href="mailto:bgkriegel@gmail.com" target="_blank">bgkriegel@gmail.com</a></div><br>
<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 7:09 AM, Chris Downs <span dir="ltr"><<a href="mailto:chris.downs@blueglobe.co.nz">chris.downs@blueglobe.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks Chris<br>
<br>
I'll have a look and let you know the outcome<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: Chris Cormack [mailto:<a href="mailto:chrisc@catalyst.net.nz">chrisc@catalyst.net.nz</a>]<br>
Sent: Monday, 1 August 2011 10:03 p.m.<br>
To: Chris Downs<br>
Cc: <a href="mailto:koha@lists.katipo.co.nz">koha@lists.katipo.co.nz</a><br>
Subject: Re: [Koha] Cron Failing $KOHAPATH/bin/migration_tools/<a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> -a<br>
<br>
* Chris Downs (<a href="mailto:chris.downs@blueglobe.co.nz">chris.downs@blueglobe.co.nz</a>) wrote:<br>
> Hi Everyone,<br>
><br>
><br>
><br>
> When trying to run the Cron for Rebuild Zebra using sudo perl<br>
> <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> ort perl <a href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a> I get the below error<br>
><br>
><br>
><br>
Take a look at misc/cronjobs/crontab.example<br>
<br>
for how to export the variables properly.<br>
<br>
Chris<br>
--<br>
Chris Cormack<br>
Catalyst IT Ltd.<br>
+64 4 803 2238<br>
PO Box 11-053, Manners St, Wellington 6142, New Zealand<br>
<br>
</div></div>_______________________________________________<br>
Koha mailing list <a href="http://koha-community.org" target="_blank">http://koha-community.org</a><br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</blockquote></div><br></div>