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


Groups > comp.lang.python > #53557

Re: How to execute command on remote windows machine

Newsgroups comp.lang.python
Date 2013-09-02 23:45 -0700
References <33a44ace-33d1-493f-85cb-4f0a093368af@googlegroups.com> <l03sav$ufd$1@dont-email.me>
Message-ID <74ce5096-46df-42e4-ad30-fd6f5d22f40f@googlegroups.com> (permalink)
Subject Re: How to execute command on remote windows machine
From gaurangnshah@gmail.com

Show all headers | View raw


Hi alex 

I tried the command you suggested however it is giving me following error. 

ERROR: The RPC server is unavailable.

On Tuesday, 3 September 2013 11:03:17 UTC+5:30, alex23  wrote:
> On 3/09/2013 2:45 PM, gaurangnshah@gmail.com wrote:
> 
> > I have a requirement where i need to kill one process on remote windows machine.
> 
> > Following command just works fine if i have to kill process on local machine
> 
> >
> 
> > os.system('taskkill /f /im processName.exe')
> 
> >
> 
> > However I am not able to figure out how to execute this command on remote windows machine.
> 
> 
> 
> The simplest way is from your local machine. taskkill accepts a /s 
> 
> parameter which can specify a remote machine by IP or name.
> 
> 
> 
> http://technet.microsoft.com/en-us/library/bb491009.aspx



On Tuesday, 3 September 2013 11:03:17 UTC+5:30, alex23  wrote:
> On 3/09/2013 2:45 PM, gaurangnshah@gmail.com wrote:
> 
> > I have a requirement where i need to kill one process on remote windows machine.
> 
> > Following command just works fine if i have to kill process on local machine
> 
> >
> 
> > os.system('taskkill /f /im processName.exe')
> 
> >
> 
> > However I am not able to figure out how to execute this command on remote windows machine.
> 
> 
> 
> The simplest way is from your local machine. taskkill accepts a /s 
> 
> parameter which can specify a remote machine by IP or name.
> 
> 
> 
> http://technet.microsoft.com/en-us/library/bb491009.aspx

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to execute command on remote windows machine gaurangnshah@gmail.com - 2013-09-02 21:45 -0700
  Re: How to execute command on remote windows machine Steven D'Aprano <steve@pearwood.info> - 2013-09-03 05:19 +0000
  Re: How to execute command on remote windows machine alex23 <wuwei23@gmail.com> - 2013-09-03 15:33 +1000
    Re: How to execute command on remote windows machine gaurangnshah@gmail.com - 2013-09-02 23:45 -0700
      Re: How to execute command on remote windows machine Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-03 22:54 -0400
  Re: How to execute command on remote windows machine random832@fastmail.us - 2013-09-03 08:39 -0400
  Re: How to execute command on remote windows machine 88888 Dihedral <dihedral88888@gmail.com> - 2013-09-03 07:21 -0700

csiph-web