I'm using runtime exec to start a java program and hijack its output
and input streams. I want to then used the PipedWriter/PipedReader
classes to write my own console filter program for the hijacked
process. the problem i'm seeing though is that I'm reading from my
"console" ok, sending data to the piped stream, reading it on the
otherside, but for some reason it seems like when i do a write on the
outputstream of the execed process the process is not getting the
input. any hints?
if i don't use piped streams and instead read a file inout the
outputstream of my file it takes that input, but of course since its
a file the interaction is not there.
Thanks ahead of time.
Joshua Cranmer - 01 Mar 2007 22:25 GMT
> I'm using runtime exec to start a java program and hijack its output
> and input streams. I want to then used the PipedWriter/PipedReader
[quoted text clipped - 10 lines]
>
> Thanks ahead of time.
Did you try flushing the data? If that doesn't work, please post some code!