hi all. What i need to know is if there is some function like
os.getuid(), but taking an argument (the username, off course), so i can
do getuid('myuser')
Thanks you dudes!
Gerardo
--
http://mail.python.org/mailman/listinfo/python-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gerardo Herzig wrote:
hi all. What i need to know is if there is some function like
os.getuid(), but taking an argument (the username, off course), so i can
do getuid('myuser')
Thanks you dudes!
Gerardo
Please refer
Gerardo Herzig wrote:
hi all. What i need to know is if there is some function like
os.getuid(), but taking an argument (the username, off course), so i can
do getuid('myuser')
Thanks you dudes!
Gerardo
How about simply:
import commands
userid = commands.getoutput(id -u username)
--