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

Giovanni COSENZA Giovanni.Cosenza@alcatel.fr
Tue May 25 00:47:00 GMT 1999


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
"012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901\r"

expect $prompt

exit

#----------------------- END TEST.EXP -------------------


Thanks to everyone that will try this one and give me back an answer.
begin:vcard 
n:COSENZA;Giovanni
x-mozilla-html:TRUE
org:Alcaltel Marcoussis
adr:;;Route de Nozay;Marcoussis;Ile-de-France;91640;France
version:2.1
email;internet:giovanni.cosenza@alcatel.fr
title:Ingenieur Consultant
tel;fax:++33 01.6963.1474
tel;work:++33 01.6963.4114
x-mozilla-cpt:;0
fn:Giovanni COSENZA
end:vcard



More information about the Cygwin mailing list