Re: getting user id (from an arbitrary sys user)

2007-03-14 Thread Tina I
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

Re: getting user id (from an arbitrary sys user)

2007-03-14 Thread Thinker
-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

getting user id (from an arbitrary sys user)

2007-03-14 Thread Gerardo Herzig
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