It sounds like Fabric is what you're after. We use it at work and it's the best thing since ssh. ;]<div><br></div><div><a href="http://docs.fabfile.org/en/1.3.2/index.html">http://docs.fabfile.org/en/1.3.2/index.html</a>
</div><div><br></div><div>(Actually, it uses ssh internally and allows you to do remote shell-like programming in a pythonic fashion.)</div><div><br clear="all">Cheers,<div>Xav</div><br>
<br><br><div class="gmail_quote">On 15 November 2011 22:04, Roark <span dir="ltr"><<a href="mailto:suhasrm@gmail.com">suhasrm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I am first time trying my hands on python scripting and would need<br>
some guidance from the experts on my problem.<br>
<br>
I want to execute a windows command within python script from a client<br>
machine on a remote target server, and would want the output of the<br>
command written in a file on client machine. What is the way it could<br>
be achieved.<br>
<br>
<br>
Thanks in advance,<br>
Roark.<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>