Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32954 > unrolled thread

Re: Executing .exe on a remote Windows machine

Started byTim Golden <mail@timgolden.me.uk>
First post2012-11-08 14:31 +0000
Last post2012-11-08 14:31 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Executing .exe on a remote Windows machine Tim Golden <mail@timgolden.me.uk> - 2012-11-08 14:31 +0000

#32954 — Re: Executing .exe on a remote Windows machine

FromTim Golden <mail@timgolden.me.uk>
Date2012-11-08 14:31 +0000
SubjectRe: Executing .exe on a remote Windows machine
Message-ID<mailman.3441.1352385155.27098.python-list@python.org>
On 08/11/2012 14:25, Kevin Holleran wrote:
> Good morning,
> 
> I wrote a python script to connect out to a bunch of my remote machines
> that are running some software.  It modifies a bunch of the config files
> for me.  After making the changes, I need to restart the software.  The
> way to do this is to call an .exe passing in a argument 'restart'
>  Simply restarting services is NOT acceptable & rebooting the machine
> isn't either.
> 
> I was trying to find a way to simply call the .exe on the remote machine
> with subprocess but how can I get it to execute on the remote machine?
>  These machines do not have SSH.  

WMI can usually help with this (although there are limitations on what
you can execute via WMI). Also people recommend sysinternals' psexec.
(I've never tried it myself).

TJG

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web