hope to be fine... i'm trying write code that use execl within execl in C language but it's not working when i put the directory of file. the code is:
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/wait.h>
int main(int argc,char* argv[]){
int n,m,x;
n=fork();
if(n==0){
execl("/bin/rm","rm /home/mazenas/Desktop/folder/","f.txt",NULL);
}
else{
wait(&m);
printf("end of Programm\n");
}
return 0;
}
help me plaese!