Results 1 to 3 of 3
Is it possible to launch telnet and send command from file to it?
Ex. I have file "commands" with IRC'a commands:
Code:
NICK tempNick
USER tempNick 8 * : John ...
- 08-05-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
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:Code:NICK tempNick USER tempNick 8 * : John Smith JOIN #someChannel QUIT
Code:telnet irc.freenode.org 6667 < ./commands
but i get message:
What is wrong? And how to do it?Code:~$ telnet irc.freenode.org 6667 < ./commands Trying 140.211.167.98... Connected to chat.freenode.net. Escape character is '^]'. Connection closed by foreign host.
- 08-05-2011 #2
- 08-05-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
yes, but i didnt tried it yet. I tried this:
and it works.Code:(sleep 3; cat ./irc-send-bot-cmd-login; sleep 15; cat ./irc-send-bot-cmd; sleep 5) | nc server port
Anyway thx all.


Reply With Quote