www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/25/11:38:38

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
Message-ID: <75F8791C7793D211B64D080036DE1504151CAC@milton.sonosight.com>
From: "Stewart, Wayne" <wayne DOT stewart AT sonosite DOT com>
To: "'Giovanni COSENZA'" <Giovanni DOT Cosenza AT alcatel DOT fr>,
cygwin AT sourceware DOT cygnus DOT com
Subject: RE: B20.1: Problem with expect (Try it and tell me the result)
Date: Tue, 25 May 1999 08:34:23 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id LAA02865

Yes it hangs for me too.

You will probably not find much interest on this mailing
list in problems related to cygtclsh80/expect/DejaGNU
(i.e., the CygWin ports of these).  The response I've
received in the past has been along the lines of:

These were only ported to be able to run the DejaGNU-based
testsuites of the other tools (e.g., gcc, binutils, gdb)
and they work "good enough" for Cygnus to use them for
that purpose.  You're welcome to submit any fixes, but
don't expect any help along the lines of documentation
or answers to questions regarding the ports of these
tools (like how cygwin implements pty's, etc.)

Lots of stuff in the CygWin port of expect doesn't
work.  Like 'timeout', 'interact', etc.

BTW, there is a pointer to another NT port of
expect in the expect FAQ on Don Libes' 'expect' home page,
http://expect.nist.gov.  I haven't looked at it myself,
but would be interested in your experiences if you do.

----
    Wayne



> -----Original Message-----
> From: Giovanni COSENZA [mailto:Giovanni DOT Cosenza AT alcatel DOT fr]
> Sent: Tuesday, May 25, 1999 12:47 AM
> To: cygwin AT sourceware DOT cygnus DOT com
> Subject: B20.1: Problem with expect (Try it and tell me the result)
> 
> 
> 
> 
> 
> The following program works fine.
> It has to be executed under cygwin "sh" or "bash" in the 
> following way :
> 
> 
> Please try to execute this program and tell me if on your 
> configuration
> it works.
> 
> if in the send string you put in more than 162 characters (even with
> spaces)
> in configuration it jams and I have to kill the process to 
> get the hand
> back.
> 
> 
> $ expect test.exp
> 
> 
> This is the program :
> 
> #--------------------- BEGIN TEST.EXP 
> ----------------------------------
> #
> # Test.exp
> #
> spawn /bin/sh
> set prompt "EUREKA"
> send "export PS1=\"${prompt}\"\n"
> expect {
>     $prompt {
>         puts "PROMPT"
>     }
> }
> send
> "0123456789012345678901234567890123456789012345678901234567890
> 12345678901234567890123456789012345678901234567890123456789012
> 345678901234567890123456789012345678901\r"
> 
> expect $prompt
> 
> exit
> 
> #----------------------- END TEST.EXP -------------------
> 
> 
> Thanks to everyone that will try this one and give me back an answer.
> 

--
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