The execu instruction allows a script to start another script.
Synopsis
execu(ctype.script[,type.data,type.nbytes][,exitval])
Description
The execu instruction has the same format and functionality as exec. Using execu instead of exec, however, causes the new script to inherit the data space of the parent script intact. Essentially, this feature allows a script to pass all its data to the new script. For this to be useful, however, the new script must have its data defined in the same way as the parent script (that is, structures, variables, etc. must be defined for the same locations). The data definition of the new script is used to overlay the actual data of the parent script.
Example
The following example quits the script with an exit value of 1 and starts executing the test.script script.
execu("test.script",1)
See also