Posted on 2008-04-22 20:19:04-07 by finfan
Net-SSH-Perl and sudo
I am writing some automation scripts using this nice SSH module. However, we only authenticate initially to our hosts with user level privileges. Much of what I need to do requires sudo. The sudo is not the problem, it's the passing of the password. Can anyone shed some light on how to issue sudo commands utilizing this module, and how to send the password? If it can't be done, can you refer me to something that can? Thanks
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.