From 43aba83d398541a552cc78b22812baa623d3fca8 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 29 Oct 2007 13:21:46 -0500 Subject: [PATCH] Tweaks to the scheduler Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- tools/scheduler.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scheduler.pl b/tools/scheduler.pl index b91c341e54..2d75bcec63 100755 --- a/tools/scheduler.pl +++ b/tools/scheduler.pl @@ -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); -- 2.39.5