|My suggestion is use the correct tool for the job.|
I have to agree with wanderer 100% on this response. This is not what telnet is used for.
Aside from the alternatives he gave you, you could also use ftp or ssh if you prefer command line.
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.