Title is pretty self-explanatory on what I want to do.
My current try:
chdir("/Path/I/want/"); //this is different that the path my program is located at
char * ls_args[] = { "ls" , "ls -l", NULL};
execv(ls_args[0], ls_args);
}
I am not getting any errors or output, any help?