I have an embedded linux application with a simple interactive command line interface.
I\'d like to access the command line from telnet (or network, in general).
You can use ncat (from nmap package: apt install nmap) for that as well as follow:
apt install nmap
ncat -lnvp 443 -e myapp
don't forget to fflush(stdout); after each printf("%s",str); in your app
fflush(stdout);
printf("%s",str);