5

Expect Scripting - Using the "interact" command?

view full story
linux-howto

http://www.unix.com – Hello All, I am writing an Expect Script to execute some commands over ssh then exit the script. The script works just fine if I automate everything and assuming the correct password was entered. So this Expect Script gets executed from a Bash script... From the Bash script I pass along an IP Address, then "I" prompt them for a Username and a Password from within the Bash script, then pass it along to the Expect Script as arguments. If the password entered is correct, the script runs smoothly without any problems. But I was trying to add a section in the script that, if the passwo (HowTos)