Os.py

From PeformIQ Upgrade
Revision as of 15:22, 21 May 2008 by PeterHarding (talk | contribs) (New page: =Script= Some features of the <b>os</b> module: <pre> #!/usr/bin/env python import os print os.sysconf_names print " SC_ARG_MAX: %d" % os.sysconf('SC_ARG_MAX') print " SC_CHILD...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script

Some features of the os module:

#!/usr/bin/env python

import os

print os.sysconf_names


print "     SC_ARG_MAX: %d" % os.sysconf('SC_ARG_MAX')
print "   SC_CHILD_MAX: %d" % os.sysconf('SC_CHILD_MAX')
print "     SC_CLK_TCK: %d" % os.sysconf('SC_CLK_TCK')
print " SC_NGROUPS_MAX: %d" % os.sysconf('SC_NGROUPS_MAX')
print "    SC_OPEN_MAX: %d" % os.sysconf('SC_OPEN_MAX')
print " SC_JOB_CONTROL: %d" % os.sysconf('SC_JOB_CONTROL')
print "   SC_SAVED_IDS: %d" % os.sysconf('SC_SAVED_IDS')

# print "  SC_STREAM_MAX: %d" % os.sysconf('SC_STREAM_MAX')
# print "  SC_TZNAME_MAX: %d" % os.sysconf('SC_TZNAME_MAX')