Get the hostname

Lukas Schnieper schnieper at semafor.ch
Wed Aug 6 07:22:51 EDT 2003


Hi
How can i get the hostname of my Linux PC?
I tried os.system('hostname') but i cant save the hostname in a variable 
  like hostname = os.system('hostname')

thanks
Lukas Schnieper






More information about the Python-list mailing list