There's more than one way to do things | |
PerlMonks |
Re: Perl script to run sudo command(s) on multiple boxes without the use of expect module.by i5513 (Pilgrim) |
on Aug 05, 2015 at 11:03 UTC ( [id://1137492]=note: print w/replies, xml ) | Need Help?? |
Hello durgesh_p, Why do you not want to use expect? Do you have public key infraestructure handling ssh access to your account? Not perl related, but you could consider see ansible PD: I have a perl script to use 'ssh server "su - -c xxx"' , but it is using expect, it is called as_rootPD2: To run it on several machines I would use pdsh (still on code.google.com :( )
In Section
Seekers of Perl Wisdom
|
|