[Overview][Constants][Types][Procedures and functions][Variables] |
Execute process (using argument list, environment; search path)
Source position: unix.pp line 86
function FpExecLP( |
const PathName: AnsiString; |
const S: array [] of AnsiString |
):cInt; |
FpExecLPreplaces the currently running program with the program, specified in PathName. Sis an array of command options. The executable in PathNameis searched in the path, if it isn't an absolute filename. The current environment is passed to the program. On success, FpExecLPdoes not return.
Extended error information is returned by the FpGetErrnofunction:
|
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.