Saturday 15 August 2015

linux - terminal in raw mode - stty(1) -



linux - terminal in raw mode - stty(1) -

from esxi 5.0 shell have access vm virtual serial interface (vm running on esxi hypervisor). using netcat (nc) available on esxi, possible connect vm virtual serial interface via unix socket binded (named pipe).

now, emulate "real" terminal connected vm serial interface, i've set pseudo-terminal in raw mode via "stty raw" command (issued on esxi shell). access os running in vm fine can see sent characters echoed back

i've tried passing -echo stty without lucky: terminal seem blocked , way recover disconnect , riconnect again...

someone can help me ?

i've solved concatenating stty , nc follows:

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

which difference between stty , nc "concatenation" via ";" , run 2 commands 1 after other ("stty raw -echo" , "nc -u unix socket") ?

linux shell terminal pty

No comments:

Post a Comment