[Gllug] Imposing a delay in a pipeline
- Tethys
tethys at gmail.com
Tue Apr 13 15:07:17 UTC 2010
On Tue, Apr 13, 2010 at 3:56 PM, Richard Huxton <dev at archonet.com> wrote:
> perl -e 'sleep 5; print while (<>)'
No, that only delays anything received in the first 5 seconds.
Anything after that is sent out in real time. What it needs is
something to buffer each line read and flush that line from the
buffer N seconds after it was received. My inherent laziness meant
that I was just hoping to avoid having to write it, and was trying
to see if someone else had already written something along those
lines.
Tet
--
“It seems intuitively obvious to me, which means that it might be
wrong.” -- Chris Torek
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list