[LON-CAPA-cvs] cvs: loncom /cgi decompress.pl

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 19 Nov 2003 20:03:39 -0000


albertel		Wed Nov 19 15:03:39 2003 EDT

  Modified files:              
    /loncom/cgi	decompress.pl 
  Log:
  - no TRACE only OUTPUT
  
  
Index: loncom/cgi/decompress.pl
diff -u loncom/cgi/decompress.pl:1.9 loncom/cgi/decompress.pl:1.10
--- loncom/cgi/decompress.pl:1.9	Wed Nov 19 15:03:05 2003
+++ loncom/cgi/decompress.pl	Wed Nov 19 15:03:39 2003
@@ -53,43 +53,43 @@
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|tar.gz|) {
             open(OUTPUT, "tar -zxpvf $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|tar.bz2|) {
             open(OUTPUT, "tar -jxpvf $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|bz2|) {
             open(OUTPUT, "bunzip2 $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|tgz|) {
             open(OUTPUT, "tar -zxpvf $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|gz|) {
             open(OUTPUT, "gunzip $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } elsif ($ENV{'cgi.file'} =~ m|tar|) {
             open(OUTPUT, "tar -xpvf $ENV{'cgi.file'} 2> /dev/null |");
             while (<OUTPUT>) {
                 print "$_<br />";
             }
-            close(TRACE);
+            close(OUTPUT);
         } else {
             print "There has been an error in determining the file type of $ENV{'cgi.file'}, please check name";
         }