"expect" weirdness
Frank McIngvale
frankm@HiWAAY.net
Sun Feb 28 23:02:00 GMT 1999
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
More information about the Cygwin
mailing list