Re: another expect question



gbarn wrote:
The original script as presented worked fine.

However, I have made the suggested changes and the password is still printed
to my screen. The script is now:

log_user 0
spawn ssh -l root kull
expect "word: "
---------------^-mind the space
send "password\r"
expect -re ".*"
interact

is the login successfull?

what happens with the password if you log in manually?

uwe

.



Relevant Pages