Re: [Koha] Fines Calculation not working
Crontab settings are necessary for fine calculation and other related task scheduling. To make Koha cronjobs functional, follow the steps, Open a terminal and try the commands, localhost:~# su localhost:~# cd /usr/share/koha/bin/cronjobs localhost:~# crontab -u root crontab.example localhost:~# crontab -u username crontab.example Above mentioned steps should be try after the Koha installation. localhost:~# crontab -e change the following values there, # ENVIRONMENT: PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml # Some additional variables to save you typing KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs Remember to save the file. Enable Koha > System preferences > Circulation > Finesmode > production -- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr Blog: http://vimalkumar.oksociety.in OK Society Volunteer. http://oksociety.in --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
Hello all. I did everything as you said. I also changed the fine date to 1 day and grace period none. I changed the cron settings for fines.pl from 5min 1hr * * * * to 5min * * * * *. What is next I should do??? How do I run cron forcefully right now and make the fines.pl run??? What else do I need to do??? Please Help. On Mon, Nov 16, 2009 at 8:46 PM, Vimal Kumar <vimal0212@gmail.com> wrote:
Crontab settings are necessary for fine calculation and other related task scheduling. To make Koha cronjobs functional, follow the steps, Open a terminal and try the commands,
localhost:~# su localhost:~# cd /usr/share/koha/bin/cronjobs localhost:~# crontab -u root crontab.example localhost:~# crontab -u username crontab.example
Above mentioned steps should be try after the Koha installation.
localhost:~# crontab -e
change the following values there,
# ENVIRONMENT: PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml
# Some additional variables to save you typing KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
Remember to save the file.
Enable Koha > System preferences > Circulation > Finesmode > production
-- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr Blog: http://vimalkumar.oksociety.in
OK Society Volunteer. http://oksociety.in --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
-- Nitesh Rijal BE IT http://niteshrijal.com.np +9779841458173
This is what I did...... I used SSH to log in to my server that hosts koha...... # ssh 202.70.79.13 # cd /usr/share/koha/bin/cronjobs # crontab -u root crontab.example #crontab -u kohaadmin crontab.example #crontab -e Then I changed the PERL5LIB, KOHA_CONF and KOHA_CRON_PATH accordingly. Then pressed Ctrl+O to writeout and then Ctrl+X to exit. What happens is that when I close the SSH session and re-enter using SSH, the crontab.example rolls back to the previous content.....all the changes that I made to it are no there......what is this problem??? Is this obvious or have I made some mistakes??? Please Help. On Mon, Nov 16, 2009 at 8:46 PM, Vimal Kumar <vimal0212@gmail.com> wrote:
Crontab settings are necessary for fine calculation and other related task scheduling. To make Koha cronjobs functional, follow the steps, Open a terminal and try the commands,
localhost:~# su localhost:~# cd /usr/share/koha/bin/cronjobs localhost:~# crontab -u root crontab.example localhost:~# crontab -u username crontab.example
Above mentioned steps should be try after the Koha installation.
localhost:~# crontab -e
change the following values there,
# ENVIRONMENT: PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml # Some additional variables to save you typing KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
Remember to save the file.
Enable Koha > System preferences > Circulation > Finesmode > production
-- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr Blog: http://vimalkumar.oksociety.in
OK Society Volunteer. http://oksociety.in --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
-- Nitesh Rijal BE IT email: rijal.it@gmail.com url: http://niteshrijal.com.np facebook: http://facebook.com/openrijal twitter: http://twitter.com/openrijal +9779841458173
There are a few quirks with editing cron. I am not familiar with ctrl-o to write. See short tutorial at http://www.jiltin.com/index.php/scripts-unix/crontab-quick-complete-referenc... Also there is some discussion of a similar problem at http://forum.vectorlinux.com/index.php?topic=10714.0 Agnes nitesh rijal wrote:
This is what I did......
I used SSH to log in to my server that hosts koha......
# ssh 202.70.79.13
# cd /usr/share/koha/bin/cronjobs
# crontab -u root crontab.example
#crontab -u kohaadmin crontab.example
#crontab -e
Then I changed the PERL5LIB, KOHA_CONF and KOHA_CRON_PATH accordingly.
Then pressed Ctrl+O to writeout and then Ctrl+X to exit.
What happens is that when I close the SSH session and re-enter using SSH, the crontab.example rolls back to the previous content.....all the changes that I made to it are no there......what is this problem???
Is this obvious or have I made some mistakes???
Please Help.
On Mon, Nov 16, 2009 at 8:46 PM, Vimal Kumar <vimal0212@gmail.com <mailto:vimal0212@gmail.com>> wrote:
Crontab settings are necessary for fine calculation and other related task scheduling. To make Koha cronjobs functional, follow the steps, Open a terminal and try the commands,
localhost:~# su localhost:~# cd /usr/share/koha/bin/cronjobs localhost:~# crontab -u root crontab.example localhost:~# crontab -u username crontab.example
Above mentioned steps should be try after the Koha installation.
localhost:~# crontab -e
change the following values there,
# ENVIRONMENT: PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml
# Some additional variables to save you typing KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
Remember to save the file.
Enable Koha > System preferences > Circulation > Finesmode > production
-- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr <http://www.vimalkumar.co.nr> Blog: http://vimalkumar.oksociety.in
OK Society Volunteer. http://oksociety.in --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
-- Nitesh Rijal BE IT email: rijal.it <http://rijal.it>@gmail.com <http://gmail.com> url: http://niteshrijal.com.np facebook: http://facebook.com/openrijal twitter: http://twitter.com/openrijal +9779841458173
-- Agnes Rivers-Moore Assistant Librarian Hanover Public Library
participants (3)
-
Agnes Rivers-Moore -
nitesh rijal -
Vimal Kumar