handling of CRLF in telnet
Harald Becker
ralda at gmx.de
Tue Mar 18 09:36:53 UTC 2014
Hi John !
>when using busybox telnet to manually connect to some service
>like SMTP, it doesnt change the \n it receives into an \r\n
>sequence before it sends the line over the wire. is there some
>workaround to make this possible ?
On older Unix systems (not Busybox) I used a simple approach for
this. Create a script you use instead of telnet. Call stty to
change your local tty line handling of your terminal (translate
CR to LF, telnet than adds CR before LF), then call telnet. After
exit of telnet do "stty sane" before script exits to put your
local tty back to well known handling.
--
Harald
More information about the busybox
mailing list