void (String[] cmd, Processor<? super String> processor, boolean skipFirstLine, boolean throwOnError) { try { Process p = Runtime.getRuntime().exec(cmd); processCommandOutput(p, processor, skipFirstLine, throwOnError); } catch (IOException e) { throw new IllegalStateException(e); } }