[Tutor] accessing another system's environment

Bill Allen wallenpb at gmail.com
Thu Feb 24 04:53:07 CET 2011


I know that I can use the following to get a listing of the environment of
my own system.   How can I do similar for another system on my network.
This is for administrative purposes.

>>> import os
>>> for param in os.environ.keys():
    print(param, os.environ[param])

--Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110223/f356b772/attachment-0001.html>


More information about the Tutor mailing list