[Gllug] pipes and C++

Adrian McMenamin adrian at newgolddream.dyndns.info
Sun Sep 12 20:49:58 UTC 2010


I have been chaining three C++ programs I have written together -
working on the principle that each should do one thing - so

A - generates some xml
B - processes said xml
C - outputs graphics

A | B | C

All works well - but now I want to have them repeat this every few
seconds ie for every three seconds

A --r 3 | B --r 3 | C --r 3

But while it is easy to get the first program to churn out the xml I
cannot work out how to get the second element in the chain to recognise
the end of the output - (I am guessing that previously B didn't really
start until A was dead?)

Is my naive way of doing this simply not going to work?
Thanks

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




More information about the GLLUG mailing list