<div dir="ltr">My goodness.... psexec. <div><br></div><div>thanks.... can't believe that didn't come to me...</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div dir="ltr">--<br>
Kevin Holleran<br>Master of Science, Computer Information Systems<br>Grand Valley State University<br>Master of Business Administration<br>Western Michigan University<br>SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP<br><br><div>
<a href="http://kevinspaleofitness.blogspot.com/" target="_blank">My Paleo & Fitness Blog</a><br><br>"Do today what others won't, do tomorrow what others can't" - SEALFit<div><br></div><div>"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle<br>
</div></div></div><br>
<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 9:31 AM, Tim Golden <span dir="ltr"><<a href="mailto:mail@timgolden.me.uk" target="_blank">mail@timgolden.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 08/11/2012 14:25, Kevin Holleran wrote:<br>
> Good morning,<br>
><br>
> I wrote a python script to connect out to a bunch of my remote machines<br>
> that are running some software. It modifies a bunch of the config files<br>
> for me. After making the changes, I need to restart the software. The<br>
> way to do this is to call an .exe passing in a argument 'restart'<br>
> Simply restarting services is NOT acceptable & rebooting the machine<br>
> isn't either.<br>
><br>
> I was trying to find a way to simply call the .exe on the remote machine<br>
> with subprocess but how can I get it to execute on the remote machine?<br>
> These machines do not have SSH.<br>
<br>
</div>WMI can usually help with this (although there are limitations on what<br>
you can execute via WMI). Also people recommend sysinternals' psexec.<br>
(I've never tried it myself).<br>
<br>
TJG<br>
<span class="HOEnZb"><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></span></blockquote></div><br></div>