If I'm interpreting your results correctly, it looks like the Expect object is getting back a blank line:
spawn id(3): Does `' match: pattern #1: -ex `password:'? No.
Can you try to get past that by "Expect"ing a newline, prior to the password prompt?
Or, alternatively (and this might actually be even simpler), try doing it "by hand" (meaning that you should try typing ssh 6.6.6.6 -l root\r at the shell prompt), and see if there's an extra newline (or something similar), which you need to anticipate receiving first.
Let me know happens when you do either of these steps ...
Update: Changed the IP address as per eXile's suggestion. I won't change it to 666.666.666.666, as that isn't a valid IP address ;-)
In reply to Re^4: Expect package not working on a Power PC machine
by liverpole
in thread Expect package not working on a Power PC machine
by sri75
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |