Parallel execution of two commands needs syncronization of output of first command to the input of the second. Writing such code won't be too easy.
There is a in-built C function system() which can execute shell commands from within the C code. You can pass your arguments to this function with a pipe..
I don't think you're going to be able to do this
portably either. Reading the output from the command
into a file and then rereading it in another exec'd
programs stdin is lousy.
Just my opinion trying this with ansi C.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.