title: terminal in raw mode - stty(1)
body: <p>from an ESXi 5.0 shell I would have access to a VM virtual serial interface (VM is running on the ESXi hypervisor). Using netcat (nc) available on ESXi, is possible to connect to the VM virtual serial interface via a UNIX socket binded to it (named pipe).</p>
  
  <p>Now, to emulate a "real" terminal connected to the VM serial interface, I've set the pseudo-terminal in raw mode via "stty raw" command (issued on ESXi shell). Access to the OS running in the VM is fine but I can see that sent characters are echoed back</p>
  
  <p>I've tried passing -echo to stty without lucky: the terminal seem blocked and the only way to recover is disconnect and riconnect again...</p>
  
  <p>Someone can help me ?</p>
  
  <hr>
  
  <p>I've solved concatenating stty and nc as follows:</p>
  
  <p>stty raw -echo; nc -U 'unix socket'</p>
  
  <p>which is the difference between stty and nc "concatenation" via ";" and just run the two commands one after the other ("stty raw -echo" and then "nc -U unix socket") ?</p>