Want Implement Pipe Functionality Bash Provides Executing Programs Task Develop Program Ca Q37043025

We want to implement the pipe functionality that bash providesfor you while executing programs. Your task is to develop a programcalled pexec (source code in pexec.c) that accepts a series ofarguments from command line that include commands, their arguments,and pipe operators (we use @ character as pipe operator to avoidconflict with shell pipes) between the commands. It then runs theprograms one by one while redirecting a command’s output as inputto the next command using pipes very much like what bash does foryou. For example, you can run your program with the following 5arguments:

pexec ls /usr/bin @ wc -l

The above will

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.