http://qs1969.pair.com?node_id=1074011


in reply to Re^2: How to clear named pipe to just have one line
in thread How to clear named pipe to just have one line

Modify P1 to not produce redundant data, or add a filtering script in the middle that produces only non-redundant data, so P1 | filter | P2.

Replies are listed 'Best First'.
Re^4: How to clear named pipe to just have one line
by techman2006 (Beadle) on Feb 08, 2014 at 13:54 UTC

    As process P1 is an server which is multithread and one of thread will try to read status from process P2. So process P1 will not have way to capture stdout of process P2.

      Being multithreaded has nothing to do with the ability to capture stdout.

      Aslo I don't understand how a named pipe would have helped.

      Maybe try to start from the beginning, explain what's actually going on, and what you want to achieve?