Pid

Lutz Horn lho at gmx.de
Fri Jun 18 10:15:39 EDT 2004


"User At" <User at invalid.domain> writes:

> How can I get a pid of a proccess and get output something similar
> to 'pidof'?

import os
print os.getpid()

Lutz
-- 
JavaScrypt: Browser-Based Cryptography Tools
http://www.fourmilab.ch/javascrypt/



More information about the Python-list mailing list