execv() or spawnple() to execute a shell script file ( executable shell of course) . but I dont know what is the difference between them.
Also if somebody can help me in how to write those functions in the C code and when the execution of the script ends , does it come back to my C code again or exits to shell