Ignore me if it won't work for you, but something to consider: If you used pre-positioned ssh keys to authenticate instead of passwords, all your problems described here would just go away. Additionally you won't have to retool your Expect machinations when you hit a different server that acts a bit differently. There are many discussions and tutorials on the web, just search for something like 'using ssh key' and you'll retrieve a wealth of information.
non-Perl: Andy Ford
In reply to Re: Expect question
by andyford
in thread Expect question
by RaduH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |