RExpect

Has anyone used RExpect? Line 16 requires 'ropen3', which I have not
been able to find.

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.

entropic_rune wrote:

Has anyone used RExpect? Line 16 requires 'ropen3', which I have not
been able to find.

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.

apt-upgrade (2.01 KB)

···

On Fri, 19 Aug 2005 22:13:22 +0900 entropic_rune <a.griesser@gmail.com> wrote:

Has anyone used RExpect? Line 16 requires 'ropen3', which I have not
been able to find.

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.

----------------------------------------------------------------------

Jim Hranicky, Senior SysAdmin UF/CISE Department |
E314D CSE Building Phone (352) 392-1499 |
jfh@cise.ufl.edu http://www.cise.ufl.edu/~jfh |

----------------------------------------------------------------------

Thank you James. Your example is clear and elegant.

···

On 8/19/05, James F. Hranicky <jfh@cise.ufl.edu> wrote:

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.