How to run Koha fines script manually
Dear Friends, Most of the libraries have installed Koha in ordinary computer and they shut down it after working hours. Fine will not calculate in this context. Fine calculation in Koha occur in 12 AM midnight. You can manage fine calculation by running fine calculation script. Here is the method, Open *Applications > Accessories > Terminal* Apply following commands, *sudo su* *cd /etc/cron.daily/* *./koha-common* Run this script at opening hour of the library. Regards, -- Vimal Kumar V. Technical Assistant Mahatma Gandhi University Library Kottayam, Kerala- 686 560 Web: http://www.vimalkumar.info Blog: http://linuxhalwa.blogspot.com http://kohageek.blogspot.in http://moovandan.blogspot.in --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
Vimal Kumar V. schreef op di 21-01-2014 om 16:40 [+0000]:
Fine will not calculate in this context. Fine calculation in Koha occur in 12 AM midnight.
If you correctly configure the cron jobs to run with cron.daily, and have anacron installed, then these tasks will run when the computer is booted up if it hasn't already happened.
From the manual page for anacron:
Anacron can be used to execute commands periodically, with a frequency specified in days. Unlike cron(8), it does not assume that the machine is running continuously. Hence, it can be used on machines that aren't run‐ ning 24 hours a day, to control daily, weekly, and monthly jobs that are usually controlled by cron. the default crontab for Debian and Ubuntu does this every day: 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) that is to say, it uses anacron if it's available. So using this you should be able to have tasks run as close to daily as is possible. A little more information is here: http://debian-handbook.info/browse/stable/sect.asynchronous-task-scheduling-... -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (2)
-
Robin Sheat -
Vimal Kumar V.