Subsitution of 'open3' works for all the functionality I've tested,
although I do notice a few quirks that might be caused by this
substitution.
I would expect they meant popen3
j.
I've moved to using the PTY module and the built in expect in lieu of
RExpect, as it was coring on me last time I tried it.
PTY/expect.rb seem to do a good job, and if expect is too basic you
can roll your own. Attached is a script I used to talk to
"apt-get upgrade" on Debian, as it's so curious.
----------------------------------------------------------------------
| Jim Hranicky, Senior SysAdmin UF/CISE Department |
| E314D CSE Building Phone (352) 392-1499 |
| j...@cise.ufl.edu http://www.cise.ufl.edu/~jfh |
----------------------------------------------------------------------
Thank you James. Your example is clear and elegant.