Execute process and read its stdout/stderr asynchronously

torhu no at spam.invalid
Wed Jul 22 11:16:53 PDT 2009


On 22.07.2009 10:41, kkll wrote:
> I'm trying out D2+phobos on OSX and would like to write wrapper around few shell commands.
>
> I've found only very basic exec() and system() in std lib, but I need to launch few things at once and get all their output.
>
> Is there something like Cocoa's NSTask in D?

For phobos 1, there's Regan Heath's old pipestream.d and process.d. 
Maybe you could port it to D 2. IIRC not all of it is in working condition.

It's here:
http://code.google.com/p/monsterbrowser/source/browse/monsterbrowser/tags/v03d/lib/


More information about the Digitalmars-d-learn mailing list