--- loncom/interface/printout.pl 2006/04/20 02:24:08 1.97
+++ loncom/interface/printout.pl 2009/11/17 01:21:08 1.137.2.1
@@ -1,6 +1,7 @@
#!/usr/bin/perl
# CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
#
+# $Id: printout.pl,v 1.137.2.1 2009/11/17 01:21:08 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -29,6 +30,7 @@ use lib '/home/httpd/lib/perl';
use LONCAPA::loncgi;
use File::Path;
use File::Basename;
+use File::Copy;
use IO::File;
use Image::Magick;
use Apache::lonhtmlcommon();
@@ -37,9 +39,16 @@ use Apache::loncommon();
use Apache::lonlocal;
use Apache::lonmsg();
use LONCAPA::Enrollment;
+use LONCAPA::Configuration;
use strict;
+my $busy_wait_timeout = 30;
+
+sub debug {
+ my ($text) = @_;
+ print "$text
\n";
+}
# Determine if a user is operating as a student for this course/domain.
#Parameters:
@@ -126,8 +135,8 @@ sub send_error_mail {
foreach my $line (@$texfile) {
$message .= "$line\n";
}
- my (undef, %receivers) = &Apache::lonfeedback::decide_receiver(undef, 0,
- 1,1,1);
+ my (undef, %receivers) = &Apache::lonmsg::decide_receiver(undef, 0,
+ 1,1,1);
# print "
sending...section: $env{'request.course.sec'}";
foreach my $dest (keys %receivers) {
# print "
dest is $dest";
@@ -157,128 +166,132 @@ Your cookie information is incorrect.