Linux - Executing multiple commands using execv
I'm using "execv" to execute Linux commands in my application. It's working fine in case of a single command. I'm wondering how could I use execv for executing multiple commands.
Following are the examples of my use case
/bin/ls -l | grep "something"
OR
/bin/ls -l && /bin/ls
Thanks in advance.
|