This is the mail archive of the cygwin@sourceware.cygnus.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]

RE: B20.1: Problem with expect (Try it and tell me the result)



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.Cosenza@alcatel.fr]
> Sent: Tuesday, May 25, 1999 12:47 AM
> To: cygwin@sourceware.cygnus.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@sourceware.cygnus.com


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