Python os.getresgid() Method
Example
Find the real, effective, and saved group ids of the current process:
#Import os Library
import os
#Print the current process's real,
effective and saved group id
print (os.getresgid())
Try it Yourself »
Definition and Usage
The os.getresgid()
method returns the
current process' real, effective, and saved group ids, as a tuple.
Note: Available on UNIX systems only.
Syntax
os.getresgid()
Technical Details
Return Value: | A tuple (rgid, egid, sgid), representing
the current process' real, effective, and saved group ids |
---|---|
Python Version: | 3.2 |