I\'m running telnet command on a host for a given port (which is open), it returns 0 (success).
telnet
For trying telnet manually, I type the following comman
You may need other linux package like expect to achieve what you want.
expect