[Koha-bugs] [Bug 1993] Task Scheduler Needs Re-write

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 21 21:22:55 CEST 2010


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=1993

--- Comment #1 from Jason Sherman <sherman.jason.s at gmail.com>  ---
Created attachment 2259
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=2259
Proposed scheduler.pl

There were some problems with both the scheduler and runreport that were
preventing me from scheduling reports properly in Ubuntu server 9.10.

1) 'EXPORT' needed to be 'export'

2) the reference to koha/intranet/cgi-bin/tools/runreportpl needed to refer to
koha/bin/cronjobs/runreport.pl
http://www.mail-archive.com/koha-patches@lists.koha.org/msg01822.html
I hardcoded the koha bin dir on my system, because I didn't see the directory
in my koha-conf.  I bet I'm missing something there.


3) I had to change the way runreport handled arguments and options.  It wasn't
behaving quite the way I thought it would according to the documentation. 
Because of these changes, I also changed the way scheduler sent options to
runreport.

Attached is my butchery of the code to get it to run reliably on my system.  It
is a work in progress.  This has a bit of refactoring on runreport.pl, so it
doesn't really follow the CVS/git guidelines. This proposed patch won't work
without the proposed runreport.pl

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Koha-bugs mailing list