What to "expect".... ?



Hi guys!
This is an "Expect" question (if there is a better group for it - let
me know...

While stdout has this prompt:

*********************************************
Connecting to 10.106.242.91...
The authenticity of host '10.106.242.91 (10.106.242.91)' can't be
established.
RSA key fingerprint is e1:c1:00:ed:bd:62:82:24:d4:62:b3:df:f4:c3:e8:f4.
Are you sure you want to continue connecting (yes/no)?
*********************************************

I evaluate the following "expect" command:

*********************************************
expect -i exp_spawn0 -gl "yes" {set var 2} -gl "10.106.242.91" {set var
1} ... (more patterns-actions come here...) -gl "some pattern"
*********************************************

I need to find the word "yes"! But I get the IP string al the time, and
thus var is set to 1.

What is wrong here???
Thanks!!!

.



Relevant Pages

  • ssh
    ... The authenticity of host '10.10.10.27' can't be established. ... Key fingerprint is 1024 ... Are you sure you want to continue connecting? ...
    (comp.security.ssh)
  • Problem in SSH login to layer 3 device using plink
    ... When I use "root" account to connect, it is very well connecting to ... the device and giving me prompt to execute my commands. ... for user inputs, I am not able to automate it. ... connection using plink, the user inputs are taken as commands. ...
    (comp.security.ssh)
  • ?? Net Security, User has to be prompted before connecting ??
    ... 4- 'A' has user Mike (local administrator priviliges) ... How do i get Windows to prompt anyone connecting over the ... network with a Username/password prompt for verification ...
    (microsoft.public.windowsxp.network_web)
  • Re: prompt to enter credentials
    ... > access any domain resources i prompt to enter user name ... > ans password even i am connecting to the netwrok. ... you should not be asked for credentials. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: PuTTY failing "Servers host key did not match the signature supplied" suddenly
    ... Are you sure you want to continue connecting? ... The authenticity of host 'localhost ' can't be established. ... that the problem lies with openssh server then. ...
    (comp.security.ssh)