terminal in raw mode - stty(1)

3k views Asked by At

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).

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

I've tried passing -echo to stty without lucky: the terminal seem blocked and the only way to recover is disconnect and riconnect again...

Someone can help me ?


I've solved concatenating stty and nc as follows:

stty raw -echo; nc -U 'unix socket'

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") ?

0

There are 0 answers