This commit is contained in:
2025-10-02 15:09:43 +02:00
commit 7cdaf924cf
49 changed files with 967 additions and 0 deletions

18
TP4/Ex1:/filexec.c Normal file
View File

@@ -0,0 +1,18 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
int main(int argc, char* argv[]){
for(int i=3;i<argc;i++){
wait(NULL);
pid_t p = fork();
if(p==0){
execl(argv[1],argv[1],argv[2],argv[i],NULL);
assert(0);
}
}
return EXIT_SUCCESS;
}