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.
and, the o/p is
[root@centos 4.0.10]# ./test2
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.