I don't see another response to this, so I will chime in (a little late). The file descriptor source and sink will work to read or write from any open file descriptor, including stdin, stdout and stderr. The documentation covers using them with an open file descriptor. It doesn't specifically mention forking, but it works well. All of the standard warnings about buffering, synchronization and writing to stdio from multiple processes still are valid. Carl Andrej van der Zee wrote:
Hi,
I was wondering if it is possible with boost iostreams to stream stderr/stdout of a forked shell program to the parent process, and use it as an iostream. I could not find anything like this in the documentation or examples. Does anybody has some working code that does just this?
Thank you, Andrej
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Carl Zmola czmola@woti.com