[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'oldlinux' (#rtl) |
Execute process (using argument list, environment; search path)
Source position: line 0
procedure Execlp( |
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 path is searched in the path, if it isn't an absolute filename. The current environment is passed to the program. On success, execlp does not return.
Errors are reported in LinuxError:
|
Execute process using environment |
|
|
Execute process |
|
|
Execute process, search path |
|
|
Execute process (using argument list, environment) |
|
|
Execute process (using argument list) |
|
|
Create child process |
Program Example12; { Program to demonstrate the Execlp function. } Uses oldlinux, strings; begin { Execute 'ls -l', with current environment. } { 'ls' is looked for in PATH environment variable.} { envp is defined in the system unit.} Execlp ('ls -l',envp); end.
No notes exist for this page yet.