Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 21, 2011 How to read output of a script | ||||
---|---|---|---|---|
| ||||
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. |
September 21, 2011 Re: How to read output of a script | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cheng Wei | 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
|
September 21, 2011 Re: How to read output of a script | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 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. |
September 21, 2011 Re: How to read output of a script | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cheng Wei | 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
|
September 22, 2011 Re: How to read output of a script | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 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 =)
|
Copyright © 1999-2021 by the D Language Foundation