This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Expect spawn -open problem under Cygwin



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@digital-smarties.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]