[Koha] Cronjob
MARC FELIX
billightness at yahoo.co.uk
Mon Jan 14 19:59:47 NZDT 2013
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 at gmail.com>
To: MARC FELIX <billightness at yahoo.co.uk>
Cc: Ramiro Uviña <ramirouvia at gmail.com>; Marcel de Rooy <M.de.Rooy at rijksmuseum.nl>; "Koha at lists.katipo.co.nz" <Koha at 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 at gmail.com
On Mon, Jan 14, 2013 at 3:37 AM, MARC FELIX <billightness at 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 at gmail.com>
> To: Marcel de Rooy <M.de.Rooy at rijksmuseum.nl>
> Cc: "Koha at lists.katipo.co.nz" <Koha at 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 at rijksmuseum.nl>
>
>> export KOHA_CONF and PERL5LIB to the right Koha instance ?
>>
>> ________________________________________
>> Van: koha-bounces at lists.katipo.co.nz [koha-bounces at lists.katipo.co.nz]
>> namens MARC FELIX [billightness at yahoo.co.uk]
>> Verzonden: zondag 13 januari 2013 14:02
>> To: Koha at 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 at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
>> _______________________________________________
>> Koha mailing list http://koha-community.org
>> Koha at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
>>
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list