This is the mail archive of the
mailing list for the Cygwin project.
RE: expect help on cygwin
- From: "Harig, Mark A." <maharig at idirect dot net>
- To: "C Wells" <s2audi at yahoo dot com>,<cygwin at cygwin dot com>
- Date: Mon, 29 Jul 2002 15:11:54 -0400
- Subject: RE: expect help on cygwin
I've been looking at this problem, but don't have any solution.
I believe that 'spawn' is broken because pseudo-tty support is
not available in 'expect'. At one time, this may have been
because pseudo-tty support was not in the 'inetutils' package,
but some tty support has been added.
Here are some of the symptoms so far:
- Cygwin's expect is based on expect-5.26. The latest release
of expect (July 18, 2002) is 5.38.
- Cygwin's tcl/tk is based on tcl-8.0. The 'expect' home page
says (implicitly) that expect-5.38 works with tcl-8.3.2, but
it does not say that it won't work with tcl-8.0.
- expect-5.38 does not build "out of the box" with with Cygwin's
tcl-8.0. It also has out of date 'configure', 'config.sub',
and 'config.guess' scripts.
What to do? Here are some alternatives:
1. Try to fix Cygwin's tcl-8.0 and fix Cygwin's expect-5.26 so that it
can be built using the new versions of the inetutils libraries that
have been released since 'expect' was last built.
2. Or, examine what it would take to make tcl-8.3.2 build on Cygwin.
This might then be built with expect-5.38+ (i.e., expect + new
versions of configure, config.guess, and config.sub). Build this
recent version using the inetutils libraries.
If neither of these approaches works, then there might be some pty
functions missing from the 'inetutils' library (particularly,
libutil.a). More pseudo-terminal support (C code) would need to be
Is this a question for the "cygwin-developers" mailing list?
> -----Original Message-----
> From: C Wells [mailto:firstname.lastname@example.org]
> Sent: Monday, July 29, 2002 2:45 PM
> To: email@example.com
> Subject: Re: expect help on cygwin
> Anyone with expect experience on cygwin that can help
> me, I will compensate with a $25 gift certificate to
> --- C Wells <firstname.lastname@example.org> wrote:
> > After giving up on trying to get autoexpect to run I
> > decided I would try a basic expect script
> > #!/usr/bin/expect -f
> > spawn telnet 126.96.36.199
> > # I tried spawn telnet "188.8.131.52" with no good result
> > expect "login:"
> > send "uid\r"
> > expect "word:"
> > send "pass\r"
> > interact
> > Pretty basic, but it won't work. Obviously the spawn
> > telnet calls MS's telnet client, but this is the
> > error
> > msg....
> > $ ./login.exp
> > spawn telnet 184.108.40.206
> > send: invalid spawn id (4)
> > while executing
> > "send "uid\r""
> > (file "./login.exp" line 5)
> > I tried the expect cmd line and it seems maybe it
> > doesn't like the \r, maybe there is another way to
> > send a return ? Can anyone help me ?
> > Thanks
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> > http://health.yahoo.com
> > --
> > Unsubscribe info:
> > http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting: http://cygwin.com/bugs.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ: http://cygwin.com/faq/
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html