Running a koha cron job for only one of our libraries
Hello, Our koha server supports 7 libraries, each with its own database. We are running Koha 22.11.20 We wish to run the cron job longoverdue.pl for only one of the instances. I notice that the cron jobs in /etc/cron.daily/koha-common all use the command "koha-foreach" to run the job for all the enabled instances. Is there a way we can just run the job for just one specific instance? Thanks! Chris Brown
If the instances each have distinct users on the server, try running the job without the koha-foreach command from the crontab for that specific user. *Joel Coehoorn* Director of Information Technology *York University* Office: 402-363-5603 | jcoehoorn@york.edu | york.edu On Fri, Oct 31, 2025 at 11:38 AM Chris Brown <chris@stayawake.co.uk> wrote:
Hello,
Our koha server supports 7 libraries, each with its own database. We are running Koha 22.11.20
We wish to run the cron job longoverdue.pl for only one of the instances. I notice that the cron jobs in /etc/cron.daily/koha-common all use the command "koha-foreach" to run the job for all the enabled instances. Is there a way we can just run the job for just one specific instance?
Thanks!
Chris Brown _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi! Have a look at koha-shell ("man koha-shell" on the command line). You should be able to have this in your cron: koha-shell -c "your script invocation here" <instancename> Best regards, Magnus Enger Libriotech/imCode On 10/31/25 17:38, Chris Brown wrote:
Hello,
Our koha server supports 7 libraries, each with its own database. We are running Koha 22.11.20
We wish to run the cron job longoverdue.pl for only one of the instances. I notice that the cron jobs in /etc/cron.daily/koha-common all use the command "koha-foreach" to run the job for all the enabled instances. Is there a way we can just run the job for just one specific instance?
Thanks!
Chris Brown _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Brown -
Coehoorn, Joel -
Magnus Enger