I am currently trying to make a functional shell within c++ using pipes, forks, and execvp. Currently the forking and execvp functions work, but I am having a bit of trouble piping processes together. Any idea where to implement pipes?
Walkthrough: http://tldp.org/LDP/lpg/node11.html
See the last part: "Often, the descriptors in the child are duplicated onto standard input or output. The child can then exec() another program, which inherits the standard streams."