interacting with a process with redirected stdin/stdout/stderr

2013-07-14 Thread Timothee Cour
I'm trying to interact with a process using std.process and redirected stdin/stdout/stderr. What would be the recommended way? For example: auto pipes=pipeShell("myprocess",Redirect.all); while(true){ pipes.stdin.rawWrite(some_command); foreach (line; pipes.stdout.byLine) { //do somet

Re: interacting with a process with redirected stdin/stdout/stderr

2013-07-14 Thread timotheecour
On Monday, 15 July 2013 at 03:49:10 UTC, Timothee Cour wrote: I'm trying to interact with a process using std.process and redirected stdin/stdout/stderr. What would be the recommended way? For example: auto pipes=pipeShell("myprocess",Redirect.all); while(true){ pipes.stdin.rawWrite(some_

Re: interacting with a process with redirected stdin/stdout/stderr

2013-07-16 Thread Anthony Goins
On Monday, 15 July 2013 at 06:46:52 UTC, timotheecour wrote: On Monday, 15 July 2013 at 03:49:10 UTC, Timothee Cour wrote: I'm trying to interact with a process using std.process and redirected stdin/stdout/stderr. What would be the recommended way? For example: auto pipes=pipeShell("mypro

Re: interacting with a process with redirected stdin/stdout/stderr

2013-07-16 Thread Timothee Cour
On Tue, Jul 16, 2013 at 10:01 AM, Anthony Goins wrote: > On Monday, 15 July 2013 at 06:46:52 UTC, timotheecour wrote: > >> On Monday, 15 July 2013 at 03:49:10 UTC, Timothee Cour wrote: >> >>> I'm trying to interact with a process using std.process and >>> redirected stdin/stdout/stderr. >>> What