Displaying 2 results from an estimated 2 matches for "get_input_connect".
2020 Mar 16
0
pipe(): input to, and output from, a single process
...string if there is no data to
read, so typically you want to call `p$poll()` first, to make sure
that there is something to read.
* `$read_output()` might not read whole lines, so maybe
`$read_output_lines()` is better for you.
* Close the stdin of the process if you want to quit cleanly:
`close(p$get_input_connection())`.
* There is currently no way to poll the input side of the pipe. :(
HTH, Gabor
On Mon, Mar 16, 2020 at 11:31 AM Greg Minshall <minshall at umich.edu> wrote:
>
> hi. i'd like to instantiate sed(1), send it some input, and retrieve
> its output, all via pipes (rather than...
2020 Mar 13
7
pipe(): input to, and output from, a single process
hi. i'd like to instantiate sed(1), send it some input, and retrieve
its output, all via pipes (rather than an intermediate file).
my sense from pipe and looking at the sources (sys-unix.c) is that is
not possible. is that true? are there any thoughts of providing such a
facility?
cheers, Greg