my $command = $java . ' -classpath ' . $classpath . ' ' . $secOptions . ' ' . $className . ' ' . $serviceUrl . ' ' . $composites; local (*HANDLE_IN, *HANDLE_OUT, *HANDLE_ERR); my $pid = open3( *HANDLE_IN, *HANDLE_OUT, *HANDLE_ERR, "$command") ; my $nextLine; while() { $nextLine= $_; }