J
Joana
hello,
I have an external process that I started with runtime.exec().
When I input for the external process per console
If I enter the input data by console to the external process, I get
with process.getInputStream() a
correct expenditure.
*****
the correctly functioning piece of my program's
PrintWriter pw = new PrintWriter(dg_proc.getOutputStream());
pw.println((new BufferedReader(new
InputStreamReader(System.in))).readLine());
byte[] buf;
process.getInputStream().read(buf); // correct expenditure
*****
But if I hand same input as String to the external process over, I
do not get an information from process.getInputStream().read(buf).
*****
not correctly functioning piece
PrintWriter pw = new PrintWriter(dg_proc.getOutputStream());
pw.println("open view V");
than is result: process.getInputStream().available() = 0.
*****
I do not understand, what wrong I make. If someone has a advice, what
it lies, you write please... commodity very nicely!
With best reagards,
Joana
I have an external process that I started with runtime.exec().
When I input for the external process per console
If I enter the input data by console to the external process, I get
with process.getInputStream() a
correct expenditure.
*****
the correctly functioning piece of my program's
PrintWriter pw = new PrintWriter(dg_proc.getOutputStream());
pw.println((new BufferedReader(new
InputStreamReader(System.in))).readLine());
byte[] buf;
process.getInputStream().read(buf); // correct expenditure
*****
But if I hand same input as String to the external process over, I
do not get an information from process.getInputStream().read(buf).
*****
not correctly functioning piece
PrintWriter pw = new PrintWriter(dg_proc.getOutputStream());
pw.println("open view V");
than is result: process.getInputStream().available() = 0.
*****
I do not understand, what wrong I make. If someone has a advice, what
it lies, you write please... commodity very nicely!
With best reagards,
Joana