http://qs1969.pair.com?node_id=600124

perlknight has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks before I head down this path, I would like to know if it is do-able? Could I use Expect to log into a remote host, and sudo as root to run remote command? The environment I am currently at, does not allow you to log in directly as root. Any thoughts? Thanks.