Thank you, Vindaar. That's very helpful!
Sorry, I didn't see the post before.
You're almost there. There's two small things missing in your code.
1. you should add a newline to the string you write to the input stream. cat
wants that newline
2. instead of closing the input stream, you flush it.
Note however that with cat at
Still hoping someone can offer some insight on the use of inputStream. Is the
documentation simply wrong on this point?
I'm trying to understand how to effectively use `osproc.startProcess` with
input and output streams. Using execProcess as an starting point, I've written
a simple function which calls the unix `cat` program, passes strings of
interest via an `inputStream` and reads from stdout using an