| www.delorie.com/archives/browse.cgi | search |
| 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 |
| Sender: | cosenza AT nmu DOT alcatel DOT fr |
| Message-Id: | <374A5574.8FC78D60@nmu.alcatel.fr> |
| Date: | Tue, 25 May 1999 09:47:00 +0200 |
| From: | Giovanni COSENZA <Giovanni DOT Cosenza AT alcatel DOT fr> |
| Organization: | alcatel nmu |
| X-Mailer: | Mozilla 4.51 [en] (X11; I; HP-UX B.10.20 9000/712) |
| X-Accept-Language: | fr,it |
| Mime-Version: | 1.0 |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | B20.1: Problem with expect (Try it and tell me the result) |
--------------4C88BC8A79411D9834418968
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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.
--------------4C88BC8A79411D9834418968
Content-Type: text/x-vcard; charset=us-ascii;
name="giovanni.cosenza.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Giovanni COSENZA
Content-Disposition: attachment;
filename="giovanni.cosenza.vcf"
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 DOT cosenza AT alcatel DOT 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
--------------4C88BC8A79411D9834418968
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--------------4C88BC8A79411D9834418968--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |