I need in next thing:
1. C program under linux
2. able to execute for some binary (execv for example)
3. push data to pipe to executable STDIN child
4. create next one child with exec's STDOUT reader (since my exec can provide output when data comes by STDIN)
5. read string in parent.
6. read executable return code in parent.
if your code will be looks like function and accepts std::string as executable name, std::vector <std::string> as params and return exec return code and data received from exec (by param, for example) it would be nice. Or by "class" mode (C++)