1

expect script inside shell script not working.

view story
linux-howto

http://www.unix.com – Shell Scipt: temp.sh <code> su - <$username> expect pass.exp <code> Expect script: pass.exp #!/usr/bin/expect -f # Login ####################### expect "Password: " send "<$password>\r" it comes up with Password: but doesnt take password passed throguh file. (HowTos)