tags:

views:

227

answers:

3

I have an executable I want to run using Lua ... how do I do this?

Can't seem to find any documentation anywhere about this.

+3  A: 

Use os.execute.

interjay
+6  A: 

You can use Lua's native 'execute' command.

Example:

os.execute("c:\\temp\\program.exe")

Sources: Lua Guide / os.execute

Anthony M. Powers
Nearly double-posted with interjay! Ha! At least we both said the same thing! Cheers.
Anthony M. Powers
Yes, thanks guys
Brian T Hannan
+3  A: 

If you need the output of the program, use io.popen

Doug Currie