delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/02/07:37:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Expect spawn -open problem under Cygwin
Mime-Version: 1.0
Date: Thu, 02 Nov 2000 20:37:42 +0800
From: Steve Landers <steve AT digital-smarties DOT com>
Message-Id: <20001102123742.D120D24733@mail>

G'day

I've found a problem when attempting to use expect under cygwin and was
wondering if it was a known problem or if there is a work around.

The following spawn (expect) command returns "fdopen: bad file number"

    set cmd {c:/cygwin/bin/expect.exe script.tcl}
    spawn -noecho -open [open "|$cmd" r+]

I've checked various FAQ's, newsgroups, etc and can't find mention of
the problem. If I get nowhere I'll try a port of the latest Expect +
Tcl/Tk 8.3.1 using cygwin and see how I go, but I'd like to
avoid this at the moment if I can.

The problem occurs on all versions of Win* I've tested on (Win95, 98,
NT4 ,2k).

BTW, the problem doesn't occur if I use Gordon Chaffee's NT port of
Expect 5.21 nor on Unix.

Any suggestions would be gratefully received :-)

Thanks

Steve

-- 
Steve Landers                     phone:  +61 8 9313 6868
Digital Smarties                  fax:    +61 8 9313 6077
Perth, Western Australia          e-mail: steve AT digital-smarties DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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