piping processes

Dejan Lekic dejan.lekic at gmail.com
Thu Dec 1 03:12:41 PST 2011

NMS wrote:

> Is there a cross-platform way to create a new process and get its i/o
> streams? Like java.lang.Process?

I doubt. However, you can use platform-specific popen() (POSIX) and _popen() 
(Windows) for that. I recently talked about this on IRC. At the moment 
Phobos uses system() , redirects the output of a command to a temp file, and 
reads the file (that is how the shell() is implemented on Windows). My 
question was - why not using _popen() ???

More information about the Digitalmars-d-learn mailing list