We want to implement the pipe functionality that bash provides for you. Your task is to develop a program called pipe (source code in pipe.c ) that accepts a series of arguments from command line that include commands, their arguments, and pipe operators (we use @ character as pipe operator to avoid conflict with shell pipes) between the commands. It then runs the programs one by one while redirecting a command's output as input to the next command using pipes very much like what bash does for you. For example, you can run your program with the following 5 arguments:
pipe ls /usr/bin @ wc -l
The above will perform the same as the following command run in bash (printing the number of files in /usr/bin ):
Hi
we are small startup with more than 5 years of industrial experience. we are expert in C\C++ language. we can deliver program as per requirements with quality. looking forward to work with you.
Hey, I have worked many of such kind of projects. I know inter process communication very well (pipe, shared memory, message queue). we will discuss it on chat.