execl, execv or execp

Hi!

I'm writing a C program which gets from the command line a shell command (such as "ls" ) and I should execute it.
My Q is: how can I send a command to the shell?

I know I have to use one of the above functions, but I don't know how to use them.

Thanks
eyal

Try typing "man execl". You will get a manual page describing the exact syntax of each of those system calls.