9

[SOLVED] exec functions, difference between execlp and execvp

view full story
linux-howto

http://www.linuxquestions.org – I am new to linux programming and learning from standard book. while trying to execute this example code Code: #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main() {     //char *const ps_argv[]={"ps","as",0};     printf("Running ps with execlp\n");   // execl("/bin/ps","ps","ax",0);     execlp("ps", "ps", "ax", 0);     //execvp("ps",ps_argv);     printf("Done.\n");     exit(0); } I (HowTos)