Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RExpect

8 views
Skip to first unread message

entropic_rune

unread,
Aug 19, 2005, 9:13:22 AM8/19/05
to
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.


Jeff Wood

unread,
Aug 19, 2005, 9:19:21 AM8/19/05
to
entropic_rune wrote:

I would expect they meant popen3

j.


James F. Hranicky

unread,
Aug 19, 2005, 11:51:51 AM8/19/05
to

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 |
----------------------------------------------------------------------

apt-upgrade

entropic_rune

unread,
Aug 20, 2005, 6:40:09 AM8/20/05
to
On 8/19/05, James F. Hranicky <j...@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.

Thank you James. Your example is clear and elegant.


0 new messages