Hugh Sasse
10/30/2008 7:15:00 PM
On Fri, 31 Oct 2008, James Gray wrote:
> On Oct 30, 2008, at 2:00 PM, Hugh Sasse wrote:
>
> > On Fri, 31 Oct 2008, James Gray wrote:
> >
> > > On Oct 30, 2008, at 1:10 PM, Hugh Sasse wrote:
> > >
> > > > On Fri, 31 Oct 2008, stephan.zimmer wrote:
> > > >
> > > > > I'm using Expect inside of a ruby script to control an external
> > > > > program. So far I have only used libexpect from a C program and would
> > > > > have several questions regarding the Ruby interface of Expect, maybe
> > > >
> > > > I didn't know there was one yet.
> > >
> > > expect.rb ships with Ruby.
> >
> > Correct me if I'm wrong, but that is not Don Libes' Expect implementation
> > and it has to be used with PTY. So it is not libexpect.
>
> It's not libexpect. You are right.
>
> I don't know who wrote it. It's a very short just adding a single method to
> IO. Here's the whole thing:
[...[
> I do expect that's intended to be used with pty.
OK, then my points about examples allowing multiple patterns, etc., stand.
I've been looking for something more rubyesque that does what Expect
does for tcl, for years. Doing it cross platform is nontrivial, though.
>
> James Edward Gray II
Thanks,
Hugh