[Overview][Constants][Types][Procedures and functions][Variables] |
Execute process (using argument list, environment)
Source position: line 0
procedure Execle( |
Todo: String; |
Ep: ppchar |
); |
Todo: AnsiString; |
Ep: ppchar |
); |
Replaces the currently running program with the program, specified in path. Path is split into a command and it's options. The executable in pathis searched in the path, if it isn't an absolute filename. The environment in epis passed to the program. On success, execledoes not return.
Errors are reported in LinuxError:
|
Execute process using environment |
|
|
Execute process |
|
|
Execute process, search path |
|
|
Execute process (using argument list) |
|
|
Execute process (using argument list, environment; search path) |
|
|
Create child process |
Program Example11; { Program to demonstrate the Execle function. } Uses oldlinux, 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.