Solved

C Shell with Multiple Pipes

Posted on 2004-10-09
3
1,832 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 84

Accepted Solution

by:
ozo earned 25 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 76
triangle challenge 4 77
base64 decode encode 12 97
recursion example 16 69
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about problems I had with the new location API and permissions in Marshmallow
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 …
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now