4 ms·
Ruby has a PTY module [1] with an expect method [2] that supports scripting similar to expect. Examples here: http://www.42klines.com/2010/08/14/what-to-expect-
by drrb 11y ago
Ruby has a PTY module [1] with an expect method [2] that supports scripting similar to expect. Examples here: http://www.42klines.com/2010/08/14/what-to-expect-from-the-ruby-expect-library.html http://www.42klines.com/2010/08/14/what-to-expect-from-the-r... .
1. http://ruby-doc.org/stdlib-2.2.2/libdoc/pty/rdoc/PTY.html http://ruby-doc.org/stdlib-2.2.2/libdoc/pty/rdoc/PTY.html
2. http://ruby-doc.org/stdlib-2.1.0/libdoc/pty/rdoc/IO.html http://ruby-doc.org/stdlib-2.1.0/libdoc/pty/rdoc/IO.html