Execute a command on remote machine in python

Xavier Ho contact at xavierho.com
Tue Nov 15 09:16:23 EST 2011


It sounds like Fabric is what you're after. We use it at work and it's the
best thing since ssh. ;]

http://docs.fabfile.org/en/1.3.2/index.html

(Actually, it uses ssh internally and allows you to do remote shell-like
programming in a pythonic fashion.)

Cheers,
Xav



On 15 November 2011 22:04, Roark <suhasrm at gmail.com> wrote:

> Hi,
>
> I am first time trying my hands on python scripting and would need
> some guidance from the experts on my problem.
>
> I want to execute a windows command within python script from a client
> machine on a remote target server, and would want the output of the
> command written in a file on client machine. What is the way it could
> be achieved.
>
>
> Thanks in advance,
> Roark.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111116/bed3aa47/attachment-0001.html>


More information about the Python-list mailing list