// wait for this process to terminate, upto a wait period
// of 'timeoutSecondsForProcess'
// if process has already been terminated, this call will
// return immediately.
tp.waitFor(timeoutSecondsForProcess);
pr = null;
if (outTimedOut || errTimedOut)
System.out.println(" Reading from process streams timed out.. ");