Syntax error from running another file by exec (language C)(edit)

Advertisements I’m experimenting with the family exec. The first code is: int main(int argc, char *argv[]){ // Program changes permission because exec can’t execute the file if permission is not accurated chmod("src2/child.c", S_IRWXU | S_IRWXU); // Now program creates one child process pid_t pid = fork(); // If fork failed exit with error if (pid… Read More Syntax error from running another file by exec (language C)(edit)