how to start a process and get it's pid?

Daniel Crespo dcrespo at gmail.com
Fri Nov 11 07:59:00 EST 2005


Hi

> >>> os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe")
> 1944

I don't get the correct PID.

When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe")
I get 168 (for example), while in the tasklist appears notepad.exe with
the 2476 PID.

Why?

Thanks

Daniel




More information about the Python-list mailing list