Popular recipes tagged "process_management" but not "python"http://code.activestate.com/recipes/tags/process_management-python/2012-05-15T18:01:22-07:00ActiveState Code RecipesGet parent process pid win32 (Python) 2012-05-15T18:01:22-07:00nuumiohttp://code.activestate.com/recipes/users/4182080/http://code.activestate.com/recipes/578133-get-parent-process-pid-win32/ <p style="color: grey"> Python recipe 578133 by <a href="/recipes/users/4182080/">nuumio</a> (<a href="/recipes/tags/process/">process</a>, <a href="/recipes/tags/process_management/">process_management</a>). </p> <p>Use ctypes + Win32 functions to enumerate processes and find parent process id.</p> <p>Thanks to winterTTr Dong for the original recipe.</p> subprocess.terminate() not always implemented (Python) 2009-02-25T10:45:01-08:00Gui Rhttp://code.activestate.com/recipes/users/4166241/http://code.activestate.com/recipes/576667-subprocessterminate-not-always-implemented/ <p style="color: grey"> Python recipe 576667 by <a href="/recipes/users/4166241/">Gui R</a> (<a href="/recipes/tags/process_management/">process_management</a>, <a href="/recipes/tags/subprocess/">subprocess</a>, <a href="/recipes/tags/terminate/">terminate</a>). Revision 2. </p> <p>The new subprocess module brings clarity and simplicity over the popenXX() functions and os.spawnXX() functions, but some implementations don't have the subprocess.terminate() method, which is crucial for killing a spawned process. This workaround works on both POSIX and Windows.</p>