-1

Quick question, lua code that will run a binary/exe file with arguments

thanks in advance.

inn
  • 237
  • 2
  • 5
  • 12

1 Answers1

6
os.execute('command with args')

is what you want.

Have a look at this small tutorial.

PS: I found this after searching for around 10 seconds. I bet writing this question here took you longer...

akluth
  • 8,393
  • 5
  • 38
  • 42
  • You can also try [`io.popen`](http://pgl.yoyo.org/luai/i/io.popen) which you can use to read/write to the program you're running. – Arun R Aug 30 '13 at 14:30
  • both os.execute and io.popen run an executable within the same process scope - so it doesnt launch a _seperate_ exe in a separate process from your running one (its expecting you to return from your called exe). –  Aug 09 '18 at 15:02