www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to read output of a script

reply Cheng Wei <rivercheng gmail.com> writes:
In D2, how can we get the output of running a script.
We can use 'system' to run the script, but how we cannot assign the
standard output of the running script. Is there any way to do it, or
whether it will be included into future version of std.process? Thanks a
lot.
Sep 20 2011
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Wednesday, September 21, 2011 03:31:11 Cheng Wei wrote:
 In D2, how can we get the output of running a script.
 We can use 'system' to run the script, but how we cannot assign the
 standard output of the running script. Is there any way to do it, or
 whether it will be included into future version of std.process? Thanks a
 lot.
std.process.shell - Jonathan M Davis
Sep 20 2011
parent reply Cheng Wei <rivercheng gmail.com> writes:
Thanks a lot.
Weird. It is not in the library reference in http://www.d-programming-
language.org/, but it is in the library reference in digitalmars.com. I
throught the previous one was the official web site now. It seems it
still is not synced well.
Sep 20 2011
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Wednesday, September 21, 2011 04:40:34 Cheng Wei wrote:
 Thanks a lot.
 Weird. It is not in the library reference in http://www.d-programming-
 language.org/, but it is in the library reference in digitalmars.com. I
 throught the previous one was the official web site now. It seems it
 still is not synced well.
That's easily answered. It looks like the documentation is on the windows version of the function instead of in a version block specifically for the documentation. Obviously, that needs to be fixed. I know that when Walter generates the docs for the digitalmars site and the zip file, he uses Windows, and my guess is that Andrei uses Linux for d-programming-language.org. Regardless, d-programming-language.org is the official site now. - Jonathan M Davis
Sep 20 2011
parent alex <ask nospam.com> writes:
On 09/20/2011 10:51 PM, Jonathan M Davis wrote:
 On Wednesday, September 21, 2011 04:40:34 Cheng Wei wrote:
 Thanks a lot.
 Weird. It is not in the library reference in http://www.d-programming-
 language.org/, but it is in the library reference in digitalmars.com. I
 throught the previous one was the official web site now. It seems it
 still is not synced well.
That's easily answered. It looks like the documentation is on the windows version of the function instead of in a version block specifically for the documentation. Obviously, that needs to be fixed. I know that when Walter generates the docs for the digitalmars site and the zip file, he uses Windows, and my guess is that Andrei uses Linux for d-programming-language.org. Regardless, d-programming-language.org is the official site now. - Jonathan M Davis
One for linux =)
Sep 21 2011