How to find out the pid of a running program?
Rod Haper
haper at ibm.net
Sat Jul 31 12:03:23 EDT 1999
More information about the Python-list mailing list
Sat Jul 31 12:03:23 EDT 1999
- Previous message (by thread): How to find out the pid of a running program?
- Next message (by thread): CGI Database Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Peter Torstenson wrote: > > I'd like tknow if there is a way of getting the pid of a program running, > using python commands? Use the getpid() function from the posix module which is imported automatically when you import the os module. Don't import the posix module directly. Do it via the os module since this will afford you code better portablility. Refer to the Python Library Reference for more info.
- Previous message (by thread): How to find out the pid of a running program?
- Next message (by thread): CGI Database Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list