Question: What do you see when you execute pipe 1 ? Why? Modify the program pipe 1 . cpp to pipe 1 a . cpp
What do you see when you execute "pipe Why?
Modify the program pipecpp to pipeacpp so that it accepts a command eg "cat pipecpp
from the keyboard. For example, when you execute pipea cat pipecpp it should give you
the same output as pipecpp
Hint: Use string functions strcpy and strcat to store the commands in a buffer.
Your main function should be like: int mainint argc, char argv
The pipe Call
The lowerlevel pipe function provides a means of passing data between two processes, without the
overhead of invoking a shell to interpret the requested command.
#include
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
