Wednesday, September 24, 2003 07:29 AM
You need to grab the process' output stream and redirect it to an appropriate file (look at 'Process.getInputStream').
See the excerpt from the JVM API documentation below.
public abstract InputStream getInputStream()
Gets the input stream of the subprocess. The stream obtains data piped from the standard output stream of the process represented by this Process object. Implementation note: It is a good idea for the input stream to be buffered. Returns the input stream connected to the normal output of the subprocess.