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
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:/
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/
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
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
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
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
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
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()
>
[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
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
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
[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)
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
14 matches
Mail list logo