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


Groups > comp.lang.python > #53553

How to execute command on remote windows machine

Newsgroups comp.lang.python
Date 2013-09-02 21:45 -0700
Message-ID <33a44ace-33d1-493f-85cb-4f0a093368af@googlegroups.com> (permalink)
Subject How to execute command on remote windows machine
From gaurangnshah@gmail.com

Show all headers | View raw


Hi Guys, 

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. 

Note: my local machine is also windows (machine from where i have to execute command)

so is there any way i can execute command from windows machine on remote windows machine ?

Back to comp.lang.python | Previous | NextNext 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