Persistent connection to named pipe

Kevin D. Clark kevin_d_clark at comcast.net
Wed Jul 14 13:20:29 EDT 2010


Michael ODonnell writes:

> I'm now working with a cantankerous old app that can't easily be
> modified and it'd be handy to have multiple sequential invocations of
> that app each spew some logging data into a FIFO (without blocking)
> so it could be processed by a single persistent instance of a filter
> connected to the output of that FIFO.  I'm therefore about to dredge
> up my little utility and put it back into service in this situation
> but before I do I wonder if anybody knows of something that's part
> of the standard Gnu/Linux stuff that already solves this problem.

(dd's "noerror" option didn't do what you wanted here)

How about:

    (while true ; do cat ; done ) </tmp/FIFO

Regards,

--kevin
-- 
alumni.unh.edu!kdc / http://kdc-blog.blogspot.com/
GnuPG: D87F DAD6 0291 289C EB1E 781C 9BF8 A7D8 B280 F24E

 Wipe him down with gasoline 'til his arms are hard and mean
 From now on boys this iron boat's your home
 So heave away, boys.
   -- Tom Waits



More information about the gnhlug-discuss mailing list