Question: Create a program in C (newshell.c) that will create a pipe, fork, off a child and exec a new program that you will write called

Create a program in C (newshell.c) that will create a pipe, fork, off a child and exec a new program that you will write called (childtype.c). That new program will read any data coming in through the pipe and print it to the screen. The parent program will allow the suser to enter data until a blank line or EOF. Before the parent exits it should tell the child it is done so the childs can exit as well.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!