Thanks so much for your assistance. My koha is now indexing automatically. Am am however having problem making the backup script backup.sh to back up automatically though its working fine when i run it both from webmin and the terminal. Do you have an idea what could be the issue? ________________________________ From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> To: MARC FELIX <billightness@yahoo.co.uk> Cc: Ramiro Uviña <ramirouvia@gmail.com>; Marcel de Rooy <M.de.Rooy@rijksmuseum.nl>; "Koha@lists.katipo.co.nz" <Koha@lists.katipo.co.nz> Sent: Monday, 14 January 2013, 8:55 Subject: Re: [Koha] Cronjob Marc, what is marcel said is that your script may not be finding the variables. Try the following, write a script with #!/bin/bash export KOHA_CONF=/path/to/koha/conf export PERL5LIB=/path/to/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z then chmod +x that script, and finally call that script from cron */5 * * * * /path/to/script > /dev/null Regards, Bernardo -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Mon, Jan 14, 2013 at 3:37 AM, MARC FELIX <billightness@yahoo.co.uk> wrote:
Yes i have tried that and its yielding the same results. The user running the script is the koha user
________________________________ From: Ramiro Uviña <ramirouvia@gmail.com> To: Marcel de Rooy <M.de.Rooy@rijksmuseum.nl> Cc: "Koha@lists.katipo.co.nz" <Koha@lists.katipo.co.nz> Sent: Monday, 14 January 2013, 3:00 Subject: Re: [Koha] Cronjob
Did you try:
*/5 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z
/dev/null
?
You can also check the permissions for the user running the script.
2013/1/13 Marcel de Rooy <M.de.Rooy@rijksmuseum.nl>
export KOHA_CONF and PERL5LIB to the right Koha instance ?
________________________________________ Van: koha-bounces@lists.katipo.co.nz [koha-bounces@lists.katipo.co.nz] namens MARC FELIX [billightness@yahoo.co.uk] Verzonden: zondag 13 januari 2013 14:02 To: Koha@lists.katipo.co.nz Onderwerp: [Koha] Cronjob
Hi all, i have configured my cronjob for index new records as below.
*/5 * * * * $KOHA_PATH/bin/migration_tools/rebuild_zebra.pl -b -a -z
/dev/null
The records are however not being indexed every after five minutes as i expect yet when i run /usr/share/koha/bin/migration_tools/rebuild_zebra.pl-b -a -z on the terminal it indexes ok. What could be the problem? _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha