Question: 1 0 . Write a program that creates a child process and uses a pipe between parent process and child process. The parent process executes
Write a program that creates a child process and uses a pipe between parent process and child process. The parent process executes the cat filename with the filename being its own program file, and the output of this command will be redirected into the pipe instead of the original standard output The child process executes tr az AZ to translate what it reads from the pipe written to by the parent to all uppercase and prints to screen. Use the code examples shown in class on creating a pipe between parent and child process, and on the fork and exec system calls.
Submit a listing of your program, and an image of running the program in the shell and its output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
