I am trying to write to a file on one host, and have the data transfer to a named pipe on another host, to be used by a program. Using netcat, I have this working, but for only 1 character at a time.

This is what I am doing so far:

Host A (192.168.0.1):
Code:
mkfifo fifo
nc -lp 9000 | while read data; do echo $data >fifo; done
Host B (192.168.0.2):
Code:
mkfifo fifo
tail -f /dev/null | nc 192.168.0.1 9000 <fifo
Host B:
Code:
for x in `seq 1 10`; do echo $x >fifo; done
Host A:
Code:
tail -f fifo
1
[no more output]
Doing this, I can only pass 1 character, and then netcat stops forwarding across the pipe. Testing it without named pipes works fine, and testing this on a single host works fine as well. Everything is using netcat 1.10.

Any thoughts?

Thanks in advance.