Dawa Ometto wrote:
> However, this is slightly suboptimal - it means that the listening
> script has to send something to standard out before I can send data to
> it's stdin. Does anyone have clue how this can be implemented without
> using the on_data callback?

Not exactly answering your question, but Net::SSH::Telnet is a small 
wrapper around Net::SSH which gives it an API much more similar to 
Net::Telnet, which in turn is more of an expect-like interface.
-- 
Posted via http://www.ruby-forum.com/.