os.timedexecute

The Lua function 'os.timedexecute' runs an external program with a time limit

It takes three parameters:

  1. The program/command line to execute
  2. The time to wait for completion (in seconds). If this time expires, the program is terminated
  3. Boolean value whether the command window should be shown or not

The function returns two values. The first is a table the Exit code from the process, the second is the Error code from the attempt to launch the program