作者:a98246813 | 来源:互联网 | 2023-05-19 05:35
I want to combine "chat" and "nc" on linux, so I will create a tiny udp server that responds on a specific request and sends back an answer.
我想在linux上结合“chat”和“nc”,因此我将创建一个小型udp服务器,该服务器响应特定的请求并返回一个答案。
In fact I want to redirect the stdout of "nc" to the stdin of "chat" and vice versa. My first attempt was:
实际上,我想将“nc”的stdout重定向到“chat”的stdin,反之亦然。我的第一次尝试是:
nc -w 3000 -u -n -l -p 30000 >&1111 <2222 &
chat -V 'request' 'answer' >&2222 <1111
But it didn't work.
但它不工作。
1 个解决方案