Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The output (stdout and stderr) of a process started via Runtime.exec() or ProcessBuilder.start() is always directed to a pipe that can only be read by the creating Java process. We need to be able to re-create the functionality that comes standard with most command processors command > filename # redirect subprocess output into a file command # subprocess output goes to same location as parent output
|