Question: Write a program in C. You will write a program that forks. The child will execute some process and put the output of that process
Write a program in C. You will write a program that forks. The child will execute some process and put the output of that process onto a pipe which the parent will read and process (i.e., filter and/or summarize) in some way. Then the parent will print the summary to the console. Be sure to use the exec and dup2 functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
