Building a simple computer to computer messenger using Bash
I want to create a script that sends a message to another IP. Using telnet seems like the only protocol that would work. I'm using this as a learning experience for Bash and I've already done some reading on how i开发者_如何学编程t could work.
I've understood that I should use a program named Expect to communicate but, again, seeing as I'm new it seems like a whole lot.
I would greatly appreciate if someone could point me in the right direction as to how to come about approaching this.
Take a look at netcat. You can send packets over TCP/IP, and listen to ports. You don't need any more :)
精彩评论