code: public static void runShellCommand(String cmd,
                                       StringBuilder outputLines,
                                       StringBuilder errorLines)
      throws IOException {
      runShellCommand(new String[] {cmd}, outputLines, errorLines);
    }
docs: Runs the shell command which is specified, along with its arguments, in the
  given <code>String</code>.  If there is any regular output or error output,
  it is appended to the given <code>StringBuilder</code>s.