Re: another expect question



The script is very simple.....

log_user 0
spawn ssh -l root system_name
send "password\r"
expect "*"
interact

I would like to stop the password from being printed to the screen.

Thank you



"Uwe Klein" <uwe_klein_habertwedt@xxxxxxxxxxx> wrote in message
news:e7isf3-fns.ln1@xxxxxxxxxxxxxxxxxxxxxxx
gbarn wrote:
I've set "log_user 0" but still get the password on the screen when I do
a
"send "$pass\r".
got some debug statement in your script like
puts stderr $pass ?

Anyone know how I can prevent this? I've tried "stty -echo" but that's
for
keyboard echoing.
could you post your script?


Regards



uwe


.



Relevant Pages