C Shell with Multiple Pipes
Posted on 2004-10-09
Can anyone point me to a tutorial which shows how to code multiple pipes into C? I'm creating a simple shell, and it needs to be able to dynamically process a dynamic number of piped commands. Most of the examples i've seen to date only handle a single pipe. As a result, the authors only hard-coded the pipe handling function in to deal with a single pipe. I need to figure out how to dynamically handle multiple pipes, as a regular Unix shell would, and would greatly appreciate a tutorial or sample code if anyone has it available. Thanks!