1

[Quick question]Problem with execl and GREP

view story
linux-howto

http://www.unix.com – Guys, I have the following code Code: #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> void read2(); main(int argc, char** argv) { int pid,status;     pid=fork();     if ( pid == 0 )     {         read2(argv[1], argv[2]);         exit(0);        }     else     wait(&status); } void read2(char * file, char * stringa) {     printf("%s, %s\n",file, st (HowTos)