This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

"expect" weirdness




I have a simple `expect' script for telnetting which
is behaving badly under B20.1:
---
#! /bin/expect -f

spawn telnet fly.hiwaay.net
expect "ogin:"
send "USER\n"
expect "word:"
send "PASSWORD\n"
interact
------

This is the exact same script I use all the time on
my Linux box with no trouble whatsoever.

Under B20.1, it sends USER & PASSWORD fine, but then
when it switches to interactive mode, everything halts,
and I have to periodically press a key to get any
further output from the telnet session.

I've tried this with CYGWIN=binmode && nobinmode, with
the same result both ways. "telnet -8" ALMOST works, but
output still stalls.

This is under the stock bash & expect that come with B20.1,
plus the telnet from the "Remote Access" package (sorry,
don't remember exact site -- it's the package with rxvt,
ftp, telnet, the inet daemons, etc.)
    telnet --version = "telnet (GNU inetutils) 1.3.1"

Can anyone tell me what's going wrong here?
thanks!
frank