| Author |
How to get a value from process
|
rajashree loganayagi
Greenhorn
Joined: Apr 12, 2011
Posts: 20
|
|
Hi,
i wrote a code for executing the batch file using socket program.
i need to get the content of the batch file which has to be sent as a request to the server.
but i cant able to get the content.
Here are my codes :
The problem is that while printing the "line" variable, i get no response in the console.
Can any one please help me....
Thanks in advance.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19214
|
|
Moving to Java in General.
Also, read this. You either need to read from p.getErrorStream() as well, in a different thread, or use ProcessBuilder with redirectErrorStream(true) instead of Runtime.exec to create the Process.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: How to get a value from process
|
|
|