Generally while writing a c/cpp program, if i ever need to execute any bash command for which there is no c library, i fork a child and then do execvp on it by passing a scr