Ruby version of the TCL-based Expect? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done s开发者_开发技巧o far to solve it.
Closed 9 years ago.
Improve this questionExpect 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.
精彩评论