Monday, September 24, 2001 08:18 AM
I am using the runtime.exec() method to launch a process. I am using the process's
getInputStream() method to get the input stream of this process.
The process that i am launching is a small server, and so once started runs for the duration
of my java program (it is killed when the java application is exited).
The problem that i am experiencing is that I want to read the output from the server at
various stages in the execution of the application. I use the process's input stream for
this purpose. But I can't get any output from the server unless i explicitly terminate the
process (which i don't want to do).
So in a nutshell is it possible to get the output of a process (via the inputStream) while
that process is still executing?
Re: Getting output from an unterminated process.
Thursday, February 21, 2002 10:09 AM