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?
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?
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.