How to get the hostname?

Thomas Güttler guettler at thomas-guettler.de
Thu Jun 5 11:12:36 CEST 2003


Hi!

Is there a way to get the hostname with python?

fd=open("/etc/HOSTNAME") or getting the environment variable $HOST
is not nice.

 thomas





More information about the Python-list mailing list