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?
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
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
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
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
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
The other thing to try is to put the output to /tmp rather than /dev/null and see what messages you get in the resulting output. Might give you a pointer. */5 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >>/tmp/zebra.log Jonathan On 14 January 2013 05:37, 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
-- Jonathan Field Technical Director, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7919 372002 (mobile) +44 (0) 800 756 6384 (fax) jonathan.field@ptfs-europe.com skype: jonathan.field2 http://www.ptfs-europe.com
Thanks it has worked after i have created a new script. ________________________________ From: Jonathan Field <jonathan.field@ptfs-europe.com> To: "Koha@lists.katipo.co.nz" <Koha@lists.katipo.co.nz> Sent: Monday, 14 January 2013, 11:23 Subject: Re: [Koha] Cronjob The other thing to try is to put the output to /tmp rather than /dev/null and see what messages you get in the resulting output. Might give you a pointer. */5 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >>/tmp/zebra.log Jonathan On 14 January 2013 05:37, 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
-- Jonathan Field Technical Director, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7919 372002 (mobile) +44 (0) 800 756 6384 (fax) jonathan.field@ptfs-europe.com skype: jonathan.field2 http://www.ptfs-europe.com _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (5)
-
Bernardo Gonzalez Kriegel -
Jonathan Field -
MARC FELIX -
Marcel de Rooy -
Ramiro Uviña