2
将stdin和stdout重定向到端口
我想要一个程序P,该程序可以从stdin&读取和写入stdout,但可以将其连接到nc或从任何端口读取并输出到另一个端口的任何程序。 # The reading is easy, here P reads from port 50505 nc -l 50505 | P 我该如何写回端口60606?
Linux,FreeBSD和其他类似Un * x的操作系统用户的问答