What to "expect".... ?
- From: "dushkin" <dushkin@xxxxxxxxxx>
- Date: 29 May 2005 01:08:16 -0700
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!!!
.
- Follow-Ups:
- Re: What to "expect".... ?
- From: Khaled
- Re: What to "expect".... ?
- From: dushkin
- Re: What to "expect".... ?
- Prev by Date: Is there anyway to execute remote application on remote host?
- Next by Date: Re: What to "expect".... ?
- Previous by thread: Is there anyway to execute remote application on remote host?
- Next by thread: Re: What to "expect".... ?
- Index(es):
Relevant Pages
|