How do you fork and communicate with a subprocess in D?
I think I’m pretty much looking for http://erdani.com/d/new-stdio/phobos-prerelease/std_process.html#pipeProcess but pipeProcess doesn’t seem to be in D2.
I want to execute a child process and be able to read from its stdout and stderr, write to its stdin and receive notification of it exiting and its exit code.
What is the best way of doing this in D?
Thanks,
Chris.
Eventually this functionality will be in Phobos, but for now, here’s a class I tossed together: Pastebin link
You use it like this: