Re: [D Cookbook]about "Communicating with external processes" part.

2015-09-13 Thread anonymous via Digitalmars-d-learn
On Sunday 13 September 2015 15:32, xky wrote: > [ pipe.d ]: > == > import std.process; > import std.stdio; > > void main(){ > auto info = pipeProcess("child.exe"); > scope(exit) wait(info.pid); > >

Re: [D Cookbook]about "Communicating with external processes" part.

2015-09-13 Thread xky via Digitalmars-d-learn
On Sunday, 13 September 2015 at 13:34:18 UTC, Adam D. Ruppe wrote: I'm in a super rush, running late to something else, but try using readln in the child before writing and see what happens. You sent data to it but the child never read it. oh my... you're right. lol so, i fix "pipe.d" this:

Re: [D Cookbook]about "Communicating with external processes" part.

2015-09-13 Thread Adam D. Ruppe via Digitalmars-d-learn
I'm in a super rush, running late to something else, but try using readln in the child before writing and see what happens. You sent data to it but the child never read it.

[D Cookbook]about "Communicating with external processes" part.

2015-09-13 Thread xky via Digitalmars-d-learn
Hello. :) I just got a this problem when i read "D Cookbook". [ pipe.d ]: == import std.process; import std.stdio; void main(){ auto info = pipeProcess("child.exe"); scope(exit) wait(info.pid);