*/
private static void execCmdDumpResults (String[] args) throws Exception
{
// We need the process inputstream and errorstream
ProcessStreamResult prout = null;
ProcessStreamResult prerr = null;
// Start a process to run the command
Process pr = execCmd(args);
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();
}