public static Process execute(ProcessBuilder pb,LineConsumer consumer) throws IOException {
  pb.redirectErrorStream(true);
  Process process=pb.start();
  process(process,consumer);
  return process;
}

public static Process execute ( ProcessBuilder pb , LineConsumer consumer ) throws IOException { pb . redirectErrorStream ( true ) ; Process process = pb . start ( ) ; process ( process , consumer ) ; return process ; }
start the process , writing the stdout and stderr to consumer .
