ex12.pp 271 B

123456789101112
  1. Program Example12;
  2. { Program to demonstrate the Execlp function. }
  3. Uses linux, strings;
  4. begin
  5. { Execute 'ls -l', with current environment. }
  6. { 'ls' is looked for in PATH environment variable.}
  7. { envp is defined in the system unit.}
  8. Execlp ('ls -l',envp);
  9. end.