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
-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 http://docs.python.org
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