--- loncom/lonr 2009/06/23 03:01:09 1.6 +++ loncom/lonr 2014/10/30 19:09:06 1.7 @@ -3,7 +3,7 @@ # The LearningOnline Network with CAPA # Connect to R CAS # -# $Id: lonr,v 1.6 2009/06/23 03:01:09 www Exp $ +# $Id: lonr,v 1.7 2014/10/30 19:09:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -329,7 +329,7 @@ sub make_new_child { sub getroutput { my ($command)=@_; - my $regexp = '>'; + my $regexp = '>\s+$'; my $syntaxerr=0; my $timeout = 20; my (undef,$error,$matched,$output) =