int execvp(char * filePath, char * args[])
int execlp(char *filePath, char * arg0, char * arg1, ..., 0)
- replace this process's program by the executable file given by
filePath
- for execvp the array should have 0 in the last entry; the
non-zero entries are counted and passed to the main routine of the
new program as the value of argc (number of command line arguments)
and args is passed to main as the array of command line
arguments
- for execlp each command line arguments is passed as a separate
parameter and the last parameter should be 0. The non-zero
parameters are counted and passed as the value of argc to the main
function of the new program.