Redirect process stdin and stdout to netcat

前端 未结 3 1125
时光说笑
时光说笑 2021-02-10 09:28

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

3条回答
  •  不知归路
    2021-02-10 10:16

    You can use ncat (from nmap package: apt install nmap) for that as well as follow:

    ncat -lnvp 443 -e myapp

    don't forget to fflush(stdout); after each printf("%s",str); in your app

提交回复
热议问题