Results 1 to 1 of 1
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-22-2011 #1
- Join Date
- Feb 2011
Help with netcat & named pipes
This is what I am doing so far:
Host A (192.168.0.1):
mkfifo fifo nc -lp 9000 | while read data; do echo $data >fifo; done
mkfifo fifo tail -f /dev/null | nc 192.168.0.1 9000 <fifo
for x in `seq 1 10`; do echo $x >fifo; done
tail -f fifo 1 [no more output]
Thanks in advance.