![]() |
![]() ![]() ![]() ![]() ![]() |
Process Management - exec
- 6 forms: execl, execve, execvp, execv, execve, execvp
if ( (pid = fork()) < 0) perrror("fork"); else if (pid == 0) /* child */ { if (execl("/bin/echo", "echo", "child:", "hello", "world", (char *) 0) < 0) perror("execl"); printf("child: this never prints\n"); }