www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/16/17:45:53

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

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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019