Re: Process Id

2007-12-03 Thread Mathias Uebelacker
Which OS Windows or Linux? br Mathias 2007/12/3, Navid Parvini <[EMAIL PROTECTED]>: > > Dear All, > > Would you please help me to find a way to get the list of all processes id > on the machine along with their parent processes. > > Thank you in advance. > > > -- > Nev

Re: Process Id

2007-12-03 Thread Tim Golden
Navid Parvini wrote: > Dear All, > > Would you please help me to find a way to get the list of all processes id > on the machine along with their parent processes. > > Thank you in advance. Deja vu? http://groups.google.com/group/comp.lang.python/search?q=list+process TJG -- http:/

Process Id

2007-12-03 Thread Navid Parvini
Dear All, Would you please help me to find a way to get the list of all processes id on the machine along with their parent processes. Thank you in advance. - Never miss a thing. Make Yahoo your homepage.-- http://mail.python.org/mailman/

Re: python - process id

2007-01-14 Thread Jean-Paul Calderone
On Sun, 14 Jan 2007 16:36:58 -0800, bruce <[EMAIL PROTECTED]> wrote: >hi... > >is there a way to have a test python app, get its' own processID. i'm >creating a test python script under linux, and was wondering if this is >possible.. See the os module, the getpid function. > >also, i've tried usi

python - process id

2007-01-14 Thread bruce
hi... is there a way to have a test python app, get its' own processID. i'm creating a test python script under linux, and was wondering if this is possible.. also, i've tried using an irc client to join the irc #python channel, and for some reason i keep getting the err msg saying that the 'addr

Re: get process id...

2006-09-21 Thread billie
Fredrik Lundh ha scritto: > billie wrote: > > >> under linux, do: > > > >> import os > >> os.getpid() > > > > Under Windows: > > > > import ctypes > > ctypes.windll.kernel32.GetCurrentProcessId() > > getpid() works just fine on Windows too: > > >>> import ctypes > >>> ctypes.windll.kernel

Re: get process id...

2006-09-21 Thread Chris
SpreadTooThin wrote: > How does one get the process id? > Is there a method for windows and unix (mac os x etc...) > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/442477 hth -- http://mail.python.org/mailman/listinfo/python-list

Re: get process id...

2006-09-21 Thread Fredrik Lundh
billie wrote: >> under linux, do: > >> import os >> os.getpid() > > Under Windows: > > import ctypes > ctypes.windll.kernel32.GetCurrentProcessId() getpid() works just fine on Windows too: >>> import ctypes >>> ctypes.windll.kernel32.GetCurrentProcessId() 1916 >>> import os >>> os.get

Re: get process id...

2006-09-21 Thread Tim Golden
billie wrote: > [EMAIL PROTECTED] ha scritto: > > > SpreadTooThin wrote: > > > How does one get the process id? > > > Is there a method for windows and unix (mac os x etc...) > > > > under linux, do: > > import os > > os.getpid() >

Re: get process id...

2006-09-21 Thread billie
[EMAIL PROTECTED] ha scritto: > SpreadTooThin wrote: > > How does one get the process id? > > Is there a method for windows and unix (mac os x etc...) > > under linux, do: > import os > os.getpid() Under Windows: import ctypes ctypes.windll.kernel32.GetC

Re: get process id...

2006-09-20 Thread georgeryoung
SpreadTooThin wrote: > How does one get the process id? > Is there a method for windows and unix (mac os x etc...) under linux, do: import os os.getpid() -- http://mail.python.org/mailman/listinfo/python-list

get process id...

2006-09-20 Thread SpreadTooThin
How does one get the process id? Is there a method for windows and unix (mac os x etc...) -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I get the process id when starting a process using os.popen2 or os.popen3 on linux?

2006-06-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Is there a way to get the process id when starting a process using > os.popen2 or os.popen3 on linux? on Unix, os.popen2/popen3 uses functions and classes from the popen2 module. they return file objects attached to the process, but there's no (non-hacky)

How do I get the process id when starting a process using os.popen2 or os.popen3 on linux?

2006-06-07 Thread mikem76
Is there a way to get the process id when starting a process using os.popen2 or os.popen3 on linux? Mike -- http://mail.python.org/mailman/listinfo/python-list