ala something like this: ````D string input = "hello\nworld"; string output; runProcess("grep hello", input, output); assert(output = "hello"); ````
Run a command-line process with data sent, and retrieve the data.
Chris Katko via Digitalmars-d-learn Fri, 10 Jun 2022 10:40:48 -0700
I want to pipe in string data to a shell/commandline program,
then retrieve the output. But the documentation I read appears to
only show usage for 'Files' for stdin/stdout/stderr.
- Run a command-line process with ... Chris Katko via Digitalmars-d-learn
- Re: Run a command-line proc... Chris Katko via Digitalmars-d-learn
- Re: Run a command-line proc... Ali Çehreli via Digitalmars-d-learn
- Re: Run a command-line ... Ali Çehreli via Digitalmars-d-learn
- Re: Run a command-l... Christopher Katko via Digitalmars-d-learn