Is it possible to redirect stderr to other place?
Edilmar
edilista at intersite.com.br
Tue Nov 8 09:32:14 MET 2005
Hi,
I'm using MindTerm 2.4.2 + JDK 1.5.0.
Then, I have an app that redirect stdout to a terminal, working fine
after running a command(). But, I didn't find a way to redirect the
stderr, when, for example, the directory specified by user doesn't exist
into server or other typical errors from scripts.
The code to redirect stdout is:
BufferedReader stdout = new BufferedReader(new
InputStreamReader(console.getStdOut()));
String line;
while((line = stdout.readLine()) != null) {
terminal.write(line + "\n\r");
}
!DSPAM:436f9f0c10225861021621!
More information about the Mindterm-users
mailing list