Get back the output of os.execute in Lua

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

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 the standard Lua libraries?

Answers

http://pgl.yoyo.org/luai/i/io.popen http://pgl.yoyo.org/luai/i/io.popen

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/132397/get-back-the-output-of-os-execute-in-lua

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils