[Gllug] Delayed data feed

Justin Perreault justinperreault at dl-jp.com
Thu Jan 13 01:44:02 UTC 2011


On Wed, 2011-01-12 at 16:33 +0000, - Tethys 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

Based on what I have read I am wondering if the issue is the "|" 

echo "hello1"; sleep 30s; echo "hello2"

gives a 30s delay(rough count on 1 one thousand) between the two lines
so how about

mkdata > custfile1 ; sleep 30s; send custfile1 to customer

or does the creation of the file get in the way? Don't even know if it
is needed to be honest, just did not see anyone mention the "|" you are
using.

HTH
Justin

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list