in reply to updating stdout

You might get some ideas from this answer I gave to leocharre's question.

Cheers,

JohnGG