[BangPypers] Executing Commands using sudo

Rahul R rahul8590 at gmail.com
Thu Nov 15 17:47:27 CET 2012

$pip install sh (http://amoffat.github.com/sh/)
pretty much does everything u asked for.



On Thu, Nov 15, 2012 at 10:01 PM, Vid <svaksha at gmail.com> wrote:

> On Thu, Nov 15, 2012 at 6:49 AM, davidsnt <davidsnt at gmail.com> wrote:
> > Hello Team,
> >
> > I have a bunch of servers where I have to login as user1 and then sudo as
> > super user and again change to user2 and execute a bunch of commands, can
> > you guys help with any thought how can I get this done in python.
> Your mail is not clear about what you are attempting to do after you
> login. Anyway, if you are deploying software across multiple remote
> servers, "Fabric" is your friend. HTH.
> Regards,
> Vid  ॥ http://svaksha.com> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers

More information about the BangPypers mailing list