3 ms·
Too heavy - if you're looking for expect-like functionality but much simpler - look at empty (worst name in the world and impossible to search for - but great c
by bbunix 11y ago
Too heavy - if you're looking for expect-like functionality but much simpler - look at empty (worst name in the world and impossible to search for - but great code): http://empty.sourceforge.net/ http://empty.sourceforge.net/
- bobbyi_settv 11y agoAnother option is pexpect (expect in Python): https://pexpect.readthedocs.org/en/latest/ https://pexpect.readthedocs.org/en/latest/
- drrb 11y agoRuby 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
- ised 11y agobbunix is right. Read this first: phttp://www.osnews.com/story.php?news_id=10929 http://www.osnews.com/story.php?news_id=10929 Source code: ftp://ftp.tw.freebsd.org/pub/ports/distfiles/empty-0.6.18b.tgz