I have 2 machines A and B.
In machine A, I do
echo "Hello World" > /dev/tcp/{Bs_ip}/12345
In machine B, how do I write a script that runs in the background, listens on port 12345, and prints whatever it receives from port 12345 to stdout?
BTW both machines are running Red Hat Enterprise Linux AS 4.
Thanks