--- loncom/lonmaxima 2012/02/16 19:54:06 1.41 +++ loncom/lonmaxima 2013/07/04 11:44:44 1.42 @@ -3,7 +3,7 @@ # The LearningOnline Network with CAPA # Connect to MAXIMA CAS # -# $Id: lonmaxima,v 1.41 2012/02/16 19:54:06 droeschl Exp $ +# $Id: lonmaxima,v 1.42 2013/07/04 11:44:44 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -259,7 +259,11 @@ sub make_new_child { &logthis('New process started'); - my $command=Expect->spawn('maxima'); + my $command = new Expect(); + $command->log_stdout(0); + #$command->log_file("$execdir/logs/lonmaxima.session.log"); + $command->spawn('maxima'); + &getmaximaoutput($command, 2); # wait for maxima to finish initialization # soft/hard_close can take awhile and we really # don't care we just want it gone $SIG{INT} = sub { @@ -268,8 +272,6 @@ sub make_new_child { exit; }; - $command->log_stdout(0); - #$command->log_file("$execdir/logs/lonmaxima.session.log"); for (my $i=0; $i < $MAX_CLIENTS_PER_CHILD; $i++) { &status('Accepting connections'); 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.