--- loncom/lond 2001/03/24 16:07:36 1.41 +++ loncom/lond 2001/03/27 13:37:43 1.45 @@ -669,6 +669,9 @@ sub make_new_child { print $sh "$clientip:$now\n"; } } + unless ($fname=~/\.meta$/) { + unlink("$fname.meta.$hostid{$clientip}"); + } $fname=~s/\/home\/httpd\/html\/res/raw/; $fname="http://$thisserver/".$fname; print $client "$fname\n"; @@ -966,16 +969,17 @@ sub make_new_child { } # ------------------------------------------------------------------- querysend } elsif ($userinput =~ /^querysend/) { - my ($cmd,$query,$custom)=split(/:/,$userinput); + my ($cmd,$query, + $custom,$customshow)=split(/:/,$userinput); $query=~s/\n*$//g; - unless ($custom) { + unless ($custom or $customshow) { print $client "". sqlreply("$hostid{$clientip}\&$query")."\n"; } else { print $client "". sqlreply("$hostid{$clientip}\&$query". - "\&$custom")."\n"; + "\&$custom"."\&$customshow")."\n"; } # ------------------------------------------------------------------ queryreply } elsif ($userinput =~ /^queryreply/) { @@ -983,6 +987,7 @@ sub make_new_child { my $store; my $execdir=$perlvar{'lonDaemons'}; if ($store=IO::File->new(">$execdir/tmp/$id")) { + $reply=~s/\&/\n/g; print $store $reply; close $store; print $client "ok\n";