What happens when I pipe any command to a telnet session , why does the session closes . How can I give a command which can be processes instead of closeing the connection .
I am trying
echo "xvz" | telnet 0 abc Trying 0.0.0.0... Connected to 0. Escape character is '^]'.
Which terminates the session instead of process xyz , what is other way i also tried
telnet 0 xyz < test
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connection to 0 closed by foreign host.