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. |
exec it as a single command: /bin/sh -c 'ls -l | grep "something"'
|
Quote:
|
then you need to implement | and && without shell
|
Quote:
I'll try to implement the same! |
All times are GMT -5. The time now is 06:14 PM. |