title: combine netcat with chat on bash for automatic udp responses
body: <p>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.</p>
  
  <p>In fact I want to redirect the stdout of "nc" to the stdin of "chat" and vice versa. My first attempt was:</p>
  
  <pre><code>nc -w 3000 -u -n -l -p 30000 &gt;&amp;1111 &lt;2222 &amp; 
  chat -V 'request' 'answer' &gt;&amp;2222 &lt;1111
  </code></pre>
  
  <p>But it didn't work.</p>