i have a expect script like
#!/usr/bin/expect
.....
spawn passwd
expect "password:"
send "password"
....
....
....
~/test.sh
Wile executing this, I'm unable to run bash script test.sh
.
How to execute Linux commands/bash scripts inside Expect script?