standard.C.io.exec

exec is available since version 1.0.

Prototype:

number exec(string szExecPath[, string szParameter1, ...]);

Parameters

szExecPath
the path to execute
szParameterN
the Nth argument to szExecPath

Description:

Loads and executes a new process (independent of the current one). When calling exec, a new process will be created. The control to the current process will be returned when the execution will end. This function is a little different of its C equivalent: the current process will NOT be replaced by the current one (equivalent to windows spawnl or fork + exec on penguins).

Return value:

Returns the exit status of the new process.