Tweaks to the scheduler
authorChris Cormack <crc@liblime.com>
Mon, 29 Oct 2007 18:21:46 +0000 (13:21 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 29 Oct 2007 21:12:29 +0000 (16:12 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
tools/scheduler.pl

index b91c341..2d75bce 100755 (executable)
@@ -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);