I need to test a TCP server by connecting with netcat as a client sending a stream from /dev/random and at the same time pipe the output to /dev/null.
nc 127.0.0.1 3000 > /dev/null
cat /dev/random | nc 127.0.0.1 3000
How can I do both at same time?
I can only connect one client and I need to pipe output to /dev/null for fast consumption of the output (~50MB/s).