Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Conduit.copy() and tango.sys.Process

Moderators: larsivi kris

Posted: 07/27/11 05:36:56

Does Conduit.copy() block or is it asynchronous? If it blocks, how can I use tango.sys.Process and have the new process's stdout and stderr go directly to my process's stdout and stderr while the new process is running (ie, just as if the new process were the only one being run)?

Author Message

Posted: 07/27/11 21:57:44 -- Modified: 07/27/11 21:58:19 by
Abscissa

Guess I just didn't really understand the docs, this seems to do the trick:

auto p = new Process( /+...whatever...+/ );
p.redirect = Redirect.None;
p.execute();
// whatever...