The following script works, BUT it echos the Passphrase and Password when it does the send. The "stty -echo" works for hiding it while I input it... I but I don't want it to show when it is sent either.
--------- BEGIN SCRIPT -------
#!/opt/sfw/bin/expect
set prompt "(>|%|#|\\\$) $"
stty -echo
send_user "\nPassPhrase: "
expect_user -re "(.*)\n"
set passphrase $expect_out(1,string)
send_user "\nPassword: "
expect_user -re "(.*)\n"
set password $expect_out(1,string)
spawn ssh SOMEHOST
expect passphrase
send $passphrase\r
expect "password:"
send $password\r
expect -re $prompt
send "uname -a\r"
expect eof
--------- END SCRIPT -------
Netminder
EE Admin