Using net-ssh with interactive program

can anybody points me to examples of using net-ssh with an interactive
program on remote host similar to what expect does?

I want to be able to response to the interactive program based on what
it prompts me.

Thanks.

···

--
Posted via http://www.ruby-forum.com/.

look at IO#expect

···

On Jul 22, 2011, at 16:42 , Rick Tan wrote:

can anybody points me to examples of using net-ssh with an interactive
program on remote host similar to what expect does?

I want to be able to response to the interactive program based on what
it prompts me.