Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- host = child.before
- hostname3 = host.decode("utf-8")
- hostname2 = hostname3.split("\r")
- hostname1 = hostname2[1]
- hostname = hostname1[:2]
- print ("Hostname is %s" %(hostname))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement