I
ittay.dror
Hi,
I have the following code:
Process proc = Runtime.getRuntime().exec(cmd, env);
int rc = proc.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(
proc.getInputStream(), 8192);
if (reader.ready()) {
THIS CODE IS NEVER REACHED
}
.....
I don't know what to make of this. If I avoid using ready() and use
readLine() directly, the code is blocked forever.
Please help,
Thanx,
Ittay
I have the following code:
Process proc = Runtime.getRuntime().exec(cmd, env);
int rc = proc.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(
proc.getInputStream(), 8192);
if (reader.ready()) {
THIS CODE IS NEVER REACHED
}
.....
I don't know what to make of this. If I avoid using ready() and use
readLine() directly, the code is blocked forever.
Please help,
Thanx,
Ittay