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
Get step-by-step solutions from verified subject matter experts
