It'd be a bit tricky with just Phobos' file though because it doesn't make it easy to wait for or be notified about input on it, but the underlying OS apis make this reasonably simple (WaitForMultipleObjects or select) if you're willing to write a bit more code to do it yourself or at least pull the underlying handles out of the Phobos file.
Re: Spawning a process: Can I "have my cake and eat it too"?
Adam D. Ruppe via Digitalmars-d-learn Thu, 01 Mar 2018 21:05:34 -0800
I would suggest redirecting the child to the parent pipe, but
then having the parent write the data back out to its own
stdout/err.
- Spawning a process: Can... Nick Sabalausky (Abscissa) via Digitalmars-d-learn
- Re: Spawning a pro... Adam D. Ruppe via Digitalmars-d-learn
- Re: Spawning a pro... Vladimir Panteleev via Digitalmars-d-learn
- Re: Spawning a pro... Steven Schveighoffer via Digitalmars-d-learn
- Re: Spawning a... Steven Schveighoffer via Digitalmars-d-learn