Ok say I had a few .c files all in the following dir
/home/user/src/ls/ls.c
/home/user/src/cd/cd.c
/home/user/src/pwd/pwd.c
/home/user/src/ps/ps.c
/home/user/src/kill/kill.c
And they all were compiled and had their own a.out files, If I wanted to execute them within a different file how would I use the execv function.
Would it be something similar to
execv("//home/user/src/ls/a.out",argv[]);