Subject: B20.1: Problem with expect (Try it and tell me the result)
From: Giovanni COSENZA <[email-masked]>
To: [email-masked]
Date: Tue, 25 May 1999 09:47:00 +0200

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.

--
Want to unsubscribe from this list?
Send a message to [email-masked]