Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 23, 2012 How to start new command with arguments, pass data to its stdin read its output? | ||||
---|---|---|---|---|
| ||||
Something like execv() but with stdin/stdout? |
October 23, 2012 Re: How to start new command with arguments, pass data to its stdin read its output? | ||||
---|---|---|---|---|
| ||||
Posted in reply to denizzzka | On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote:
> Something like execv() but with stdin/stdout?
Something like popen(), not execv().
|
October 23, 2012 Re: How to start new command with arguments, pass data to its stdin read its output? | ||||
---|---|---|---|---|
| ||||
Posted in reply to denizzzka | On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote: > Something like execv() but with stdin/stdout? If you're on linux i have a little file that might help: http://arsdnet.net/dcode/exec.d int exec( string program, string[] args = null, string input = null, string* output = null, string* error = null, string[] environment = null); |
October 23, 2012 Re: How to start new command with arguments, pass data to its stdin read its output? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 23 October 2012 at 12:19:08 UTC, Adam D. Ruppe wrote:
> On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote:
>> Something like execv() but with stdin/stdout?
>
> If you're on linux i have a little file that might help:
>
> http://arsdnet.net/dcode/exec.d
>
> int exec(
> string program,
> string[] args = null,
> string input = null,
> string* output = null,
> string* error = null,
> string[] environment = null);
Thanks! It is suitable for my case.
I think something like this should be in the standard library.
|
October 23, 2012 Re: How to start new command with arguments, pass data to its stdin read its output? | ||||
---|---|---|---|---|
| ||||
Posted in reply to denizzzka | On Tue, 23 Oct 2012 13:29:59 +0100, denizzzka <4denizzz@gmail.com> wrote: > On Tuesday, 23 October 2012 at 12:19:08 UTC, Adam D. Ruppe wrote: >> On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote: >>> Something like execv() but with stdin/stdout? >> >> If you're on linux i have a little file that might help: >> >> http://arsdnet.net/dcode/exec.d >> >> int exec( >> string program, >> string[] args = null, >> string input = null, >> string* output = null, >> string* error = null, >> string[] environment = null); > > Thanks! It is suitable for my case. > > I think something like this should be in the standard library. Coming soon I believe. The "new" std.process should support it. R -- Using Opera's revolutionary email client: http://www.opera.com/mail/ |
Copyright © 1999-2021 by the D Language Foundation