How to redirect file content to telnet?
Is it possible to launch telnet and send command from file to it?
Ex. I have file "commands" with IRC'a commands:
Now i want to launch telnet and connect to IRC server:
USER tempNick 8 * : John Smith
telnet irc.freenode.org 6667 < ./commands
but i get message:
What is wrong? And how to do it?
~$ telnet irc.freenode.org 6667 < ./commands
Connected to chat.freenode.net.
Escape character is '^]'.
Connection closed by foreign host.