[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'Unix' (#rtl) |
Execute process (using argument list, environment)
Source position: unix.pp line 78
function FpExecLE( |
const PathName: AnsiString; |
const S: array of AnsiString; |
MyEnv: ppchar |
):cint; |
FpExecLE replaces the currently running program with the program, specified in PathName. S is an array of command options. The executable in PathName must be an absolute pathname. The environment in MyEnv is passed to the program. On success, FpExecLE does not return.
Extended error information is returned by the FpGetErrno function:
|
Execute process using environment |
|
|
Execute process |
|
|
Execute process, search path |
|
|
Execute process (using argument list, environment) |
|
|
Execute process (using argument list, environment; search path) |
|
|
Create child process |
Program Example11; { Program to demonstrate the Execle function. } Uses Unix, strings; begin { Execute 'ls -l', with current environment. } { 'ls' is NOT looked for in PATH environment variable.} { envp is defined in the system unit.} Execle ('/bin/ls -l',envp); end.
No notes exist for this page yet.