[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netcat udp to two IP addresses?



Hi,

Paul Duncan wrote:
> what the best way is to send it to two IP addresses?

If it must happen without much time to study the web, i'd use tee(1)
to feed a named pipe from the unnamed one. Then netcat can consume both.

  mknod ~/fifo p
  netcat -u PORT1 <~/fifo
  data_producer | tee -i ~/fifo |  netcat -u PORT2


Have a nice day :)

Thomas


Reply to: