[Gllug] Delayed data feed

John Hearns hearnsj at googlemail.com
Wed Jan 12 17:14:29 UTC 2011


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
>

Heck, netcat itself can do a delay, assuming the data is in lines

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


Or as suggested use dummynet
http://www.gsp.com/cgi-bin/man.cgi?section=4&topic=dummynet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list