fpc/docs/olinuxex/ex11.pp
2004-10-16 13:14:03 +00:00

13 lines
283 B
ObjectPascal

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.