--- loncom/interface/printout.pl 2003/10/20 18:34:20 1.40 +++ loncom/interface/printout.pl 2004/03/04 05:21:34 1.40.2.2 @@ -1,7 +1,7 @@ #!/usr/bin/perl # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc. # -# $Id: printout.pl,v 1.40 2003/10/20 18:34:20 sakharuk Exp $ +# $Id: printout.pl,v 1.40.2.2 2004/03/04 05:21:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,6 +32,7 @@ use File::Path; use IO::File; use Image::Magick; +my %origENV=%ENV; if (! &LONCAPA::loncgi::check_cookie_and_load_env()) { print <new; $not_eps =~ s/^\s+//; @@ -272,6 +278,8 @@ END } else { print "LaTeX file $texfile was not created successfully"; } + #got what we needed reset ENV in case it is to big for system + %ENV=%origENV;