Here's one way of trapping stdout from an unrelated program. I'm pretty
sure there's better way, but this works in Blackdown 1.2v1.
Process process = Runtime.getRuntime().exec("yourprogram");
process.waitFor();
// getInputStream() returns the input stream connected to the normal
// output of the subprocess.
BufferedReader in =
new BufferedReader(new InputStreamReader(process.getInputStream()));
while((line = in.readLine()) != null){
System.out.println(line);
// Or whatever....
}
-Jerry
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]