Terminating a subprocess on Windows

Category: Python - Education

The new subprocess module in Python 2.4 allows access to the handle of any newly created subprocess. You can use this handle to terminate subprocesses using either ctypes or the pywin32 extensions. Date: 26 January, 2012


Subprocess Terminating - Windows TerminateProcess - Subprocess Manipulation - Subprocess - Terminating - Manipulation

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

As any twisted user knows, the original python subprocess module can yield to interferences with twisted's own reactor - at least unless installSignalHandlers is false, which can lead to other consequences.

developer Developer: Alan Franzoni
license License: Freeware
operating systems Operating System: Windows


Modifies the subprocess module and supplies a new class, LoginSTARTUPINFO, to launch processes as another user on Windows.

developer Developer: Eric Pruitt
license License: Freeware
operating systems Operating System: Windows


Describes a simple example of the potential for shared Singleton or Borg object methods to be proxy'd by an object that SyncManger can present to requesting subprocesses.

developer Developer: Mateyuzo
license License: Freeware
operating systems Operating System: Windows


A coroutine-based wrapper for subprocess.

developer Developer: Glenn Eychaner
license License: Freeware
operating systems Operating System: Windows


Just stumbled upon the need to move data chunks between subprocesses in a non-linear way with some logic in-between, so tee(1) and fifo(7)'s weren't too good option.

developer Developer: Mike Kazantsev
license License: Freeware
operating systems Operating System: Windows


The new subprocess module brings clarity and simplicity over the popenXX() functions and os.

developer Developer: Guillaume Rava
license License: Freeware
operating systems Operating System: Windows


I have used this for ages to control child processes (and all their children).

developer Developer: Padraig Brady
license License: Freeware
operating systems Operating System: Windows


This script is an example of how to use the winreg module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This simple import hook script can resolve Windows shortcuts refering to directories.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All