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
- To: cygwin@sourceware.cygnus.com
- Subject: "expect" weirdness
- From: Frank McIngvale <frankm@HiWAAY.net>
- Date: Tue, 16 Feb 1999 11:45:38 -0600 (CST)
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <Pine.OSF.4.02.9902101508240.26393-100000@fly.HiWAAY.net>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
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