ALL INPUT/TEST CASES NEED TO BE HARD CODED IN
Note. You should use the sample program (provided below) as yourbase code to implement this part.
For C/C++ in a Unix Environment
Design and implement a C/C++ program to handle 3 commands inpipe.
Warning: Do not use any”system(…)” function call throughout this assignment.
Your test case is hard-coded in the program.
char *cmd1[] = { “/bin/ls”, “-l”,”/etc”, 0 };
char *cmd2[] = { “/bin/head”, 0 };
char *cmd3[] = { “/bin/wc”, “-l”, 0};
Provide a Makefile file to compile your program.
Your Program Name: a3part2.c
Sample Program.
The following sample program is to run two commands in pipe(cmd1 | cmd2)
PayPal Gateway not configured
PayPal Gateway not configured