Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
On Thu, Nov 8, 2012 at 11:32 AM, Chris Rebert wrote: > On Thursday, November 8, 2012, Kevin Holleran wrote: > >> On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran wrote: >> >>> My goodness psexec. >>> >>> thanks can't believe that didn't come to me... >>> >>> >>> >>> >>> On Thu, Nov 8, 2012

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Chris Rebert
On Thursday, November 8, 2012, Kevin Holleran wrote: > On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran > > > wrote: > >> My goodness psexec. >> >> thanks can't believe that didn't come to me... >> >> >> >> >> On Thu, Nov 8, 2012 at 9:31 AM, Tim Golden >> >> > wrote: >> >>> On 08/11/2012

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Tim Golden
On 08/11/2012 15:37, Kevin Holleran wrote: > [code] > try: > print("Attempting to restart Splunk...") > subprocess.call(["psexec", "" + host, "'c:\\Program > Files\\Splunk\\bin\\splunk.exe'", "restart"]) > [/code] > > & am getting: > > [output] > Attempting to restart

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
On Thu, Nov 8, 2012 at 9:43 AM, Kevin Holleran wrote: > My goodness psexec. > > thanks can't believe that didn't come to me... > > > > > On Thu, Nov 8, 2012 at 9:31 AM, Tim Golden wrote: > >> On 08/11/2012 14:25, Kevin Holleran wrote: >> > Good morning, >> > >> > I wrote a python script

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
My goodness psexec. thanks can't believe that didn't come to me... -- Kevin Holleran Master of Science, Computer Information Systems Grand Valley State University Master of Business Administration Western Michigan University SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP My Paleo & Fitness Blo

Re: Executing .exe on a remote Windows machine

2012-11-08 Thread Tim Golden
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 th

Executing .exe on a remote Windows machine

2012-11-08 Thread Kevin Holleran
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'