Hi,
I am trying hard on getting this done.
This is the first time i am using a expect script.
Here is a simplified way of what i am trying to use via expect.
Code:
ssh localhost
expect assword:
send "password\r"
and, the o/p is
Code:
[root@centos 4.0.10]# ./test2
root@localhost's password:
The problem here is that it is not inputting the password value at the prompt.
it is just waiting for the user to input and hence the expect is not doing what it's supposed to.
Any idea, What am i missing here.
Thanks in advance.
Any help appreciated.