--- loncom/lonnet/perl/lonnet.pm 2003/02/13 21:35:50 1.327 +++ loncom/lonnet/perl/lonnet.pm 2003/02/13 22:22:01 1.329 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.327 2003/02/13 21:35:50 albertel Exp $ +# $Id: lonnet.pm,v 1.329 2003/02/13 22:22:01 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -76,7 +76,7 @@ qw(%perlvar %hostname %homecache %badSer %libserv %pr %prp %metacache %packagetab %titlecache %courselogs %accesshash $processmarker $dumpcount %coursedombuf %coursehombuf %courseresdatacache - %domaindescription %domain_auth_def %domain_auth_arg_def); + %domaindescription %domain_auth_def %domain_auth_arg_def $tmpdir); use IO::Socket; use GDBM_File; use Apache::Constants qw(:common :http); @@ -1755,7 +1755,7 @@ sub dump { # --------------------------------------------------------------- currentdump sub currentdump { - my ($sname,$sdom,$courseid)=@_; + my ($courseid,$sdom,$sname)=@_; $courseid = $ENV{'request.course.id'} if (! defined($courseid)); $sdom = $ENV{'user.domain'} if (! defined($sdom)); $sname = $ENV{'user.name'} if (! defined($sname)); @@ -3670,6 +3670,12 @@ BEGIN { } } +# ------------- set up temporary directory +{ + $tmpdir = $perlvar{'lonDaemons'}.'/tmp/'; + +} + %metacache=(); $processmarker='_'.time.'_'.$perlvar{'lonHostID'};