Alternatives to process communication

admin

Administrator
Staff member
John Senford <[email protected]> wrote in messagenews:[email protected]...>> Using the Runtime.exec() function, I have been able to communicate, to adegree,> with the windows ftp program but have problems when trying the same thing> with another program.>> (incidentally, the 'other program' happens to be the same secure telnetapplication> I have mentioned in a previous question entitled "grab window contents(text)")>> What alternatives are for starting an external program and communicating> with it (getting it's output, send it input)?>> regards,>> John.>One alternative is to use pure Java versions of the things you're trying tocontrol. There are Java versions of FTP and Telnet available, and they'resure to be easier to control inside the Java tent than outside.If the program you're trying to control via exec() uses only console inputand output then you have a chance to make it work, but if it writes directto the screen (as a Telnet program is likely to do) then you probably haveno chance.
 
Back
Top