I am looking for a way to redirect the output of a Process / ProcessBuilder? I know that it works in Java 7 like this:
ProcessBuilder builder = new ProcessBuilder(command);
builder.redirectOutput();
Process process = builder.start();
But I need the same for Java 5/6 ... Any help highly appreciated.