Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message Subject: RE: expect help on cygwin Date: Mon, 29 Jul 2002 15:11:54 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 X-MS-TNEF-Correlator: From: "Harig, Mark A." To: "C Wells" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6TJC0H09620 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 added. Is this a question for the "cygwin-developers" mailing list? > -----Original Message----- > From: C Wells [mailto:s2audi AT yahoo DOT com] > Sent: Monday, July 29, 2002 2:45 PM > To: cygwin AT cygwin DOT 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 > Amazon. > Thanks > > --- C Wells 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 1.2.3.4 > > # I tried spawn telnet "1.2.3.4" 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 1.2.3.4 > > 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 > 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/ > > -- 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/