私は別のプロセスでコマンドを実行すると、例えばそのJavaDocの状態Runtime.getRuntime().exec(...)方法、使用して: Executes the specified command and arguments in a separate process.
を私はプロセスが生きることを知って、このプロセスからのストリームを行うには何が必要ですJavaプログラムが存在す
次のコードを使用してSystem.outを/ dev/nullに一時的にリダイレクトしようとしましたが、動作しません。 System.out.println("this should go to stdout");
PrintStream original = System.out;
System.setOut(new PrintStream(new FileOutputStream("/d