StudyingUnixInterface/8/fork/exec2.c

10 lines
163 B
C
Raw Normal View History

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