Persistent connection to named pipe

Michael ODonnell michael.odonnell at comcast.net
Wed Jul 14 14:38:43 EDT 2010



Ken wrote:
> Well... interesting.  I wonder why cat acts that way.

IIRC a read() of the FIFO when all data have been consumed and the
writer has closed his end yields -1 with errno EAGAIN and most apps
just call it quits at that point.


> Interestingly, I'd played around with FIFOs some time ago, and
> there's a fine way to cheat: "tail -f".

D'oh!!!


Kevin wrote:
> How about: (while true ; do cat ; done ) </tmp/FIFO

Again: D'oh!!!

Couldn't you guys have suggested more obscure solutions?
Did they have to be things I use every fscking day?

(They're just the sort of stuff I was looking for - thx)



GNHLUG rocks.
 


More information about the gnhlug-discuss mailing list