code: public static int executeToFile( final String[]         command,
                                       final File             file,
                                       final OutputStream     stderr )
          throws
              IOException,
              InterruptedException
      {
          return executeToStreams( command, new FileOutputStream( file ), stderr );
      }
docs: Executes the given command, redirecting stdout to the given file
  and stderr to the given stream
  
  @param command array of commands to run
  @param file file to write stdout
  @param stderr output stream for stderr
  @return error code from system
  @throws java.io.IOException if problems
  @throws java.lang.InterruptedException if interrupted