?
Solved

C Shell with Multiple Pipes

Posted on 2004-10-09
3
Medium Priority
?
1,871 Views
Last Modified: 2010-04-26
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!
0
Comment
Question by:CyberDog3K
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 100 total points
ID: 12268852
0
 
LVL 1

Expert Comment

by:meidanze
ID: 12331579
Hi,
this is an example of a shell source code.
http://www.bloggerman.com/articles/2003/November
if you want something more complex let me know and i will send you.
0
 
LVL 1

Expert Comment

by:meidanze
ID: 12331581
Correction for the link.
the link is:
 http://www.bloggerman.com/articles/2003/November/shell
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Make the most of your online learning experience.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Progress

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question