title: What happens when I pipe any command to a telnet session , why does the session closes
body: <p>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 .</p>
  
  <p>I am trying </p>
  
  <p>echo "xvz" | telnet 0 abc
  Trying 0.0.0.0...
  Connected to 0.
  Escape character is '^]'.</p>
  
  <p>Which terminates the session instead of process xyz , what is other way i also tried </p>
  
  <p>telnet 0 xyz &lt; test<br>
  Trying 0.0.0.0...
  Connected to 0.
  Escape character is '^]'.
  Connection to 0 closed by foreign host.</p>