yes, you are correct that os.execute()
returns, and it is very simple, if you understand how to execute your command using and with lua you can also find out how many variables it returns, and this may take some time, but i think you can try
local a, b, c, d, e=os.execute(-what ever your command is-)
for my example, a is the first argument returned, b is the second argument returned, etc. I think I answered your question correctly based on what you ask.
source share