Open apowers313 opened 11 years ago
I haven’t used node-java yet, but maybe you could disable or redirect sdout and stderr from entirely within Java using the System.setOut
and System.setErr
methods. You could set the output streams to a stream that goes nowhere, or to one that writes to a file or socket and then have your Node code listen for changes to that file or messages from that socket.
Is there any way to capture stdout / stderr from the java process? Or at least kill stdout / stderr so that the java output doesn't conflict with my node.js output?