std-in/out communication with child process

Hi, I'd like to open a child process within my main process and send info to its stdin and get info from its stdout/stderr. It would be handy for the unit testing suite for a compiler. It would compile some source-code to a binary, start the binary as a child process and test it. Is there a way in C++ and/or Boost to do this? Thanks! -- Michiel Helvensteijn

I'd like to open a child process within my main process and send info to its stdin and get info from its stdout/stderr.
You've got such capabilities in Boost.Process, which is not a part of the official boost yet: http://www.netbsd.org/~jmmv/process/boost_process/usage.html#boost_process.u...

Igor R wrote:
I'd like to open a child process within my main process and send info to its stdin and get info from its stdout/stderr.
You've got such capabilities in Boost.Process, which is not a part of the official boost yet:
That's exactly what I'm looking for, thanks. :-) Though, I see a 2006 copyright. Is this library actively maintained? Will it be a part of the official boost someday? Thanks, -- Michiel Helvensteijn

Though, I see a 2006 copyright. Is this library actively maintained? Will it be a part of the official boost someday?
Well, here is the latest discussion I could find on this issue: http://lists.boost.org/Archives/boost/2007/04/120189.php

Igor R wrote:
Though, I see a 2006 copyright. Is this library actively maintained? Will it be a part of the official boost someday?
Well, here is the latest discussion I could find on this issue:
I see. Well, it will suffice for now. But I would certainly like to see this library in Boost someday. Thanks for your reply, -- Michiel Helvensteijn

On Sun, 02 Nov 2008 16:22:10 +0100, Michiel Helvensteijn
Igor R wrote:
I'd like to open a child process within my main process and send info to its stdin and get info from its stdout/stderr.
You've got such capabilities in Boost.Process, which is not a part of the official boost yet:
That's exactly what I'm looking for, thanks. :-)
Though, I see a 2006 copyright. Is this library actively maintained? Will it be a part of the official boost someday?
There has been some progress again this year: See http://www.highscore.de/boost/process/ for version 0.3. Boris
participants (3)
-
Boris
-
Igor R
-
Michiel Helvensteijn