Open mouneshb opened 5 years ago
It can, mostly, but you need to ensure you are using CRLF as the terminators and disable line buffering. From linux this works to talk to the clitest program.
stty_orig=ssty -g
; stty -echo -icanon ; nc localhost 8000; stty $stty_orig
Not sure of the windows equivalent.
The above keeps a copy of the existing terminal characteristics, disables local echo and special character processing (and ensures chars are sent one at a time instead of line at a time), then invokes netcat with telnet prompts and CRLF line terminators, and finally restores the terminal settings when done.
use socat:
socat -,rawer TCP:127.0.0.1:8000
Can we make libcli to work with 'nc - netcat ' ? I tried connecting with nc, it connects but output is not displayed.