delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/21/05:14:29

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: <37452391.D52E36D7@nmu.alcatel.fr>
Date: Fri, 21 May 1999 11:12:50 +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 (NT)

--------------8A68589050AAFF4E1B99BB82
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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.





--------------8A68589050AAFF4E1B99BB82
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


--------------8A68589050AAFF4E1B99BB82
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
--------------8A68589050AAFF4E1B99BB82--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019