[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

C Shell with Multiple Pipes

Posted on 2004-10-09
3
Medium Priority
?
1,911 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
  • 2
3 Comments
 
LVL 85

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Loops Section Overview

834 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