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