public static int executeToFile ( final String [ ] command , final File file ) throws IOException , InterruptedException { return executeToFile ( command , file , System . err ) ; }
Executes the given command redirecting stdout to the given file and stderr to actual stderr