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.

On Jul 22, 2011, at 16:42 , Rick T. 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.

look at IO#expect