[Gllug] Delayed data feed

Dan Kolb gllug at eco.li
Wed Jan 12 17:19:24 UTC 2011


On Wed, Jan 12, 2011 at 05:11:43PM +0000, John Hearns wrote:
> On 12 January 2011 16:33, - Tethys <tethys at gmail.com> wrote:
> > Does anyone know of a simple delay utility that consumes data from
> > stdin and outputs it on stdout a fixed time later? What I want to be
> > able to do is:
> >
> > ? ? ? ?mkdata | delay 30 | send_data_to_customer
> >
> 
> Sadly, large open tanks of mercury are illegal these days. You coudl
> have a lot of fun.
> 
> How about using netcat with a dummy network between a receiving netcat
> on the same network interface?
> 
> mkdata | netcat  | dummynet with delay | netcat - | send data to customer

Or, better still, use netcat's built-in delay:

    -i interval
             Specifies a delay time interval between lines of text sent and
             received.  Also causes a delay time between connections to
             multiple ports.

Isn't that handy? :-)

Dan
-- 
Life may have no meaning -- or even worse,
it may have a meaning of which I disapprove.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list