This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B20.1: Problem with expect (Try it and tell me the result)
- To: cygwin@sourceware.cygnus.com
- Subject: B20.1: Problem with expect (Try it and tell me the result)
- From: Giovanni COSENZA <Giovanni.Cosenza@alcatel.fr>
- Date: Tue, 25 May 1999 09:47:00 +0200
- Organization: alcatel nmu
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
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com