In a C program (p1), how to launch a dynamically constructed command (and its arguments) that reads its standard input from p1's standard output?
Note that:
A method other than this stdout --> stdin piping is also OK provided it is PORTABLE across Windows and Linux.
I cannot use C++, Java, Perl, Ruby, Python, etc here.
Also, will this have a MinGW dependency for its Windows build?
REOPENED: The question below answers it for Linux, but this question wants a portable method. http://stackoverflow.com/questions/70842/execute-program-from-within-a-c-program