prout = new ProcessStreamResult(pr.getInputStream(), bos, null);
prerr = new ProcessStreamResult(pr.getErrorStream(), bos, null);
// wait until all the results have been processed
prout.Wait();
prerr.Wait();
}
private static Process execCmd (String[] args) throws Exception