i am trying to create a shell using C as a homework but my execvp() doesnt work . it doesnt exe the ls. i am working at a virtual machine lubuntu 32
Thas my outpout any my error message !
if(pid==0){
printf("child");
char **tokens=tokenizer(hey)//hey is from fgets. tokenizer is fine
printer(tokens);
//execute ls
execvp( ls_args[0], ls_args);
//only get here if exec failed
perror("execv failed");
return 2; //return error status }