Tweaks to the scheduler

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2007-10-29 13:21:46 -05:00 committed by Joshua Ferraro
parent ff406324ff
commit 43aba83d39
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ use C4::Output;
my $input = new CGI;
my $base = C4::Context->config('intranetdir');
my $command = "EXPORT KOHA_CONF=\"$CONFIG_NAME\"; ".$base."/tools/runreport.pl $report $format $email";
my $CONFIG_NAME="/home/crc/koha/etc/koha-production.xml";
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
@ -54,6 +54,7 @@ if ($mode eq 'job_add') {
my $report=$input->param('report');
my $format=$input->param('format');
my $email=$input->param('email');
my $command = "EXPORT KOHA_CONF=\"$CONFIG_NAME\"; ".$base."/tools/runreport.pl $report $format $email";
if ($recurring){
my $frequency = $input->param('frequency');
add_cron_job($start,$command);