Lukas Schnieper wrote: > 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') how about import socket hostname = socket.gethostname() </F>