Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

PipedWriter and runtime exec help

Thread view: 
sublimate@gmail.com - 01 Mar 2007 19:18 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
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!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.