Perhaps http://cpansearch.perl.org/src/DROLSKY/Net-SSH-Perl-1.25/eg/pssh does what you want?
(And do you know about authorized_keys, so you don't have to embed your password?)
In reply to Re: Interactive SSH and sudo -s
by hbm
in thread Interactive SSH and sudo -s
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |