[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

C Shell with Multiple Pipes

Posted on 2004-10-09
3
Medium Priority
?
1,884 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

649 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