posted 14 years ago
Hi,
While i am executing the following code, i am getting the exitvalue as 9 instead of 0.
Process process = null;
InputStream inStream = null;
try {
process = Runtime.getRuntime().exec(command);
process.waitFor();
int exitValue = process.exitValue();
log.debug("Process has exited (exit value={})", exitValue);
}.....
I am getting the exitValue as 9 instead of 0. Can any one help me on this.
If i comment the process.waitFor(); line, the system throws InterruptedException.
Thanks
Madhu