in reply to Perl script to run sudo command(s) on multiple boxes without the use of expect module.
Net::OpenSSH::Parallel is a module that can be used to run commands in several hosts in parallel and it can be easily integrated with Expect to automate the sudo authentication steps. Look for sudo on the module documentation for an example.
Also, if the version of sudo installed on the remote machines is recent enough you may be able to pass the password directly through stdin. That is covered in Net::OpenSSH documentation.
|
|---|