Get back the output of os.execute in Lua

前端 未结 3 1174
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 00:27

When I do an \"os.execute\" in Lua, a console quickly pops up, executes the command, then closes down. But is there some way of getting back the console output only using th

3条回答
  •  不知归路
    2020-12-03 01:08

    I think you want this http://pgl.yoyo.org/luai/i/io.popen io.popen. But it's not always compiled in.

提交回复
热议问题