Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53565
| From | random832@fastmail.us |
|---|---|
| References | <33a44ace-33d1-493f-85cb-4f0a093368af@googlegroups.com> |
| Subject | Re: How to execute command on remote windows machine |
| Date | 2013-09-03 08:39 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2.1378211961.5461.python-list@python.org> (permalink) |
On Tue, Sep 3, 2013, at 0:45, gaurangnshah@gmail.com wrote:
> 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 ?
The taskkill command actually has an option for this: /S. I don't know
what mechanism it uses or what you would have to do to give yourself
permission to use it.
--
Random832
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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