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]

B20.1: Problem with expect (NT)


I'm using the DejaGnu program and it works well but with some command it
jams and it does not give back the hand.

I have tried to simplify the source and to detail the problem and this
is the result.

The following program works fine.
It has to be executed under cygwin "sh" or "bash" in the following way :

$ expect test.exp

--------------------- 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 TET.EXP
------------------------------------------

But if you add one or more characters (> 161 chars.)  in the SEND string
the expect program jams.

Is it normal ?
Is it possible to execute command with more than 162 chars.?
Is it a buffer overflow problem?

I'd like to resolve this problem because most command I use are very
long.

Thanks.




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

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