标签:execl interpreter
int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { /* child */ if (execl("/home/vonzhou/Coding/apue/proccontrol/testinterp", "testinterp", "myarg1", "MY ARG2", (char *)0) < 0) err_sys("execl error"); } if (waitpid(pid, NULL, 0) < 0) /* parent */ err_sys("waitpid error"); exit(0); }
execl error: Permission denied 错误解决
标签:execl interpreter
原文地址:http://blog.csdn.net/vonzhoufz/article/details/39610449