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