Replace current process with a new process. Calling
execwithout first callingforkwill terminate your current Octave process and replace it with the program named by file. For example,exec ("ls" "-l")will run
lsand return you to your shell prompt.If successful,
execdoes not return. Ifexecdoes return, err will be nonzero, and msg will contain a system-dependent error message.