[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Execute process (using argument list, environment; search path)
Source position: unix.pp line 85
function FpExecLP( |
const PathName: AnsiString; |
const S: array of AnsiString |
):cint; |
FpExecLP replaces the currently running program with the program, specified in PathName. S is an array of command options. The executable in PathName is searched in the path, if it isn't an absolute filename. The current environment is passed to the program. On success, FpExecLP 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) |
|
|
Create child process |
Program Example76; { Program to demonstrate the FpExeclp function. } Uses Unix, strings; begin { Execute 'ls -l', with current environment. } { 'ls' is looked for in PATH environment variable.} { envp is defined in the system unit.} FpExeclp ('ls',['-l']); end.