Q:

Redirecting input and output of a child process in C

I want to write a c program in which i create multiple child processes and redirect their inputs and outputs to different file descriptors .I googled a lot but couldn't find relevant results. Please help .

A:

Start with dup.  You really need to search a bit harder.  There is plenty of material on this.

