The
Apache Commons project includes support for Telnet protocol among others. You might look at how they do it.
If you absolutely HAVE to use exec, then you will have to handle the standard in and out streams inside
Java because exec grabs control of them - which is probably the source of your problem.
Bill
[ January 18, 2006: Message edited by: William Brogden ]