|
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/Mod ules/osprocess