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

http://amoffat.github.com/sh/tutorials/2-interacting_with_processes.html


--Rahul

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

> On Thu, Nov 15, 2012 at 6:49 AM, davidsnt <david...@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@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to