how to redirect stderr to stdout io in spawnProcess (eg stderr to stdout)?

Timothee Cour via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 14 19:01:26 PDT 2014


ping?

On Tue, Sep 9, 2014 at 6:48 PM, Timothee Cour <thelastmammoth at gmail.com>
wrote:

> How to redirect io in spawnProcess (eg stderr to stdout)?
>
> is it safe to use it with a same File object for stderr and stdout as
> follows?
> Couldn't find this in the docs.
>
> auto logFile =File(...);
> auto pid = spawnShell(command,
>                         std.stdio.stdin,
>                         logFile,
>                         logFile);
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140914/a83128af/attachment.html>


More information about the Digitalmars-d-learn mailing list