I want to send two or more messages to a TCP server using telnet client from bash. This implies that I should maintain the session open while my script is in execution.
For example, the script flow should be:
1) open telnet session 2) send 1st message 3) sleep 1 s 4) send 2nd message 5) close session What is the best way to accomplish this ?