|
Russell Haley wrote on 1/26/2018 12:16 AM:
Is it possible to open a shell in a coroutine and just interact with it when I need it? So in a coroutine, I would just open it and then read and write then yield?
You imply you want asynchronous reads and writes here...?Anyway, my go to, now called osprocess [1], for dealing with process input and output is based on the old lua-ex module. I have used it with success for years.
-Josh[1] https://github.com/jjensen/luaplus51-all/tree/master/Src/Modules/osprocess