Re: Getting PID for process

2005-04-29 Thread runes
On XP/2003 at least, os.system('taskkill /pid le ') will do. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting PID for process

2005-04-29 Thread John Abel
try: import os myPID = os.getpid() So you can kill it at a later date, it would be worth writing that out to a file somewhere - C:\temp? I'm sure you can get a kill command for Win32. HTH J Harlin Seritt wrote: Let's say I have a simple script on Windows NT. I would like for that script to find

Getting PID for process

2005-04-29 Thread Harlin Seritt
Let's say I have a simple script on Windows NT. I would like for that script to find its own PID once it's started and store that as a value within the script. Also, down the road I'd like to kill that process by its PID. How is this done? Thanks, Harlin Seritt -- http://mail.python.org/mailman