Hi,
I have a problem with the spawn execution with expect.. i have done the code for expect in a separate file and i am calling the this execution from the bash script.. as given below..
-bash-4.1$ cat main.sh
#!/usr/bin/bash
./spawn.exp
==========================
-bash-4.1$ cat spawn.exp
#!/usr/bin/expect
spawn ssh
-bash-4.1$
=================================
-bash-4.1$ ./main.sh
spawn ssh