Hi
The process is not getting terminated after executing a command.
Should not the process get terminated automatically once the command is executed? Or should we terminate it using a separate command.
The code:
try {
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(commandToExecute);
process.waitFor();
System.out.println("Exitvalue="+process.exitValue ());
is just waiting and not coming out.
pls reply asap. thx in advance
rgds
Avinash
The process is not getting terminated after executing a command.
Should not the process get terminated automatically once the command is executed? Or should we terminate it using a separate command.
The code:
try {
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(commandToExecute);
process.waitFor();
System.out.println("Exitvalue="+process.exitValue ());
is just waiting and not coming out.
pls reply asap. thx in advance
rgds
Avinash