Re: Confused about how to use ``inputStream`` with ``osproc.startProcess``

2019-11-18 Thread pmags
Thank you, Vindaar. That's very helpful!

Re: Confused about how to use ``inputStream`` with ``osproc.startProcess``

2019-11-18 Thread Vindaar
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

Re: Confused about how to use ``inputStream`` with ``osproc.startProcess``

2019-11-18 Thread pmags
Still hoping someone can offer some insight on the use of inputStream. Is the documentation simply wrong on this point?

Confused about how to use ``inputStream`` with ``osproc.startProcess``

2019-11-15 Thread pmags
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