Advertisement
rfmonk

print_hostname.py

May 5th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. import socket
  2. host_name = socket.gethostname()
  3. print "Host name: %s" %host_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement