--- loncom/interface/printout.pl 2007/04/20 20:54:24 1.123
+++ loncom/interface/printout.pl 2010/04/29 10:51:37 1.146
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
#
-# $Id: printout.pl,v 1.123 2007/04/20 20:54:24 albertel Exp $
+# $Id: printout.pl,v 1.146 2010/04/29 10:51:37 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -43,6 +43,17 @@ use LONCAPA::Configuration;
use strict;
+my $busy_wait_timeout = 30;
+
+
+my $debugging = 0;
+
+sub debug {
+ if ($debugging) {
+ my ($text) = @_;
+ print "$text
\n";
+ }
+}
# Determine if a user is operating as a student for this course/domain.
#Parameters:
@@ -112,7 +123,7 @@ sub send_error_mail {
if (&is_student()) {
# build the subject and message body:
- # print "sending message to course coordinators.
";
+ &debug("sending message to course coordinators.");
# Todo: Convert badurl into a url from file path:
@@ -131,9 +142,9 @@ sub send_error_mail {
}
my (undef, %receivers) = &Apache::lonmsg::decide_receiver(undef, 0,
1,1,1);
- # print "
sending...section: $env{'request.course.sec'}";
+ &debug("sending...section: $env{'request.course.sec'}");
foreach my $dest (keys %receivers) {
- # print "
dest is $dest";
+ &debug("dest is $dest");
my @destinfo = split(/:/,$dest);
my $user = $destinfo[0];
my $dom = $destinfo[1];
@@ -160,173 +171,146 @@ Your cookie information is incorrect.