[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Execute process (using argument list, environment)
Source position: unix.pp line 84
function FpExecL( |
const PathName: AnsiString; |
const S: array of AnsiString |
):cint; |
FpExecL 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 current process' environment is passed to the program. On success, FpExecL 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 Example77; { Program to demonstrate the FPExecL function. } Uses Unix, strings; begin { Execute 'ls -l', with current environment. } { 'ls' is NOT looked for in PATH environment variable.} FpExecL ('/bin/ls',['-l']); end.