views:

42

answers:

1

Expect seems to be a very powerful automation tool: http://www.nist.gov/mel/msid/expect.cfm

Is there a Ruby equivalent to that tool?

+1  A: 

There's the pty package in the standard library, but that only implements a subset of the functionality of the Tcl package. In particular, it appears to lack the ability to wait for many patterns at once, or to provide interaction at the same time. Maybe this won't matter for what you're doing with it; a great many expect programs never make use of its full power.

Donal Fellows
It's also really badly documented; if I didn't already know the Tcl package somewhat I'd find it really hard to understand the Ruby package.
Donal Fellows
Agree..the documentation is not good at all.
never_had_a_name