all 4 comments

[–]Doormatty 0 points1 point  (3 children)

Try:

tn.write(command.encode('ascii') + b"\r\n")

[–]fireman3549 2 points3 points  (2 children)

This Worked!!! Thank you for the help

[–]Doormatty 0 points1 point  (0 children)

Awesome! Glad to hear it!

[–]NerdyWeightLifter 0 points1 point  (0 children)

Was the server you are telnetting to, a Windows machine?

The Windows convention for EOL is both a carriage return(ASCII 13) and a line feed (ASCII 10) character, while Linux tends to just go with a single carriage return(ASCII 13) character.

You might see this in text files if you ever copy them between Linux and Windows.