M
Marteno Rodia
Hello,
this question follows a similar question I've already asked before,
but now it will bo more specyfic. Let's imagine I have some code (a
part of a bigger program) for which I want to redirect output and
error streams into a log file. I can do this using
Process.getErrorStream() and Process.getInputStream() functions. I can
also put the appropriate part of my code (which in fact has not been
written by me) into the run() method of an anonymous class
implementing the Runnable interface, but... there is one problem:
How to get a Process object out of the Runnable object? Is it possible
by any means?
MR
this question follows a similar question I've already asked before,
but now it will bo more specyfic. Let's imagine I have some code (a
part of a bigger program) for which I want to redirect output and
error streams into a log file. I can do this using
Process.getErrorStream() and Process.getInputStream() functions. I can
also put the appropriate part of my code (which in fact has not been
written by me) into the run() method of an anonymous class
implementing the Runnable interface, but... there is one problem:
How to get a Process object out of the Runnable object? Is it possible
by any means?
MR