StudyingUnixInterface/8/fork/exec2.c
2020-12-27 21:27:27 +08:00

10 lines
163 B
C

#include <unistd.h>
#include <stdio.h>
int main(void) {
if(execl("./itptfile", "tools", "yeah", ".", NULL) < 0) {
printf("exec error\n");
}
return 0;
}