[solved]-Warning Use System Function Call Throughout Assignment Note May Use Sample Code Provided Q39067366

Warning: You should not use “system(…)” function call throughout this assignment. Note. You may use some sample code provided (see below) for this part. Create a folder (a2 part3) under cs3377 folder for this part. Design and implement a C++ program (a2part3.c) with the password file (/etc/passwd) to do the following tasks. Note. To compile a C++ program, use g++. If you use ges, use: -Istdc++ option gcs hello.cpp -o hello -Istdc++ To use c++ 2011 standard g++ hello.cpp -o hello -std=st11 First, create a folder (a2part3) for this part, to have all the programs and results. A Simple Shell to run one Command with File Redirection Design and implement a simple shell program to handle “one command” with file redirection. Here we use the following file-redirection symbols as follow: “<=” for input, “=>” for output, “=>>” for append. For example, “Is => out.txt” will output the result of the command to a file named out.txt. Note. You should use the sample program (provided below) as your base code to implement this part. Warning: Do not use any “system…)” function call throughout this assignment. For example (and for your test cases) whoami date pwd Is => outl.txt We <= out1.txt cat <= out1.txt 10. date => out2.txt date =>> out2.txt wc <= out2.txt cat <= out2.txt 12. 13. We <=plout1.txt => plout4.txt cat <=plout4.txt Provide a Makefile file to compile your program. Show transcribed image text Warning: You should not use “system(…)” function call throughout this assignment. Note. You may use some sample code provided (see below) for this part. Create a folder (a2 part3) under cs3377 folder for this part. Design and implement a C++ program (a2part3.c) with the password file (/etc/passwd) to do the following tasks. Note. To compile a C++ program, use g++. If you use ges, use: -Istdc++ option gcs hello.cpp -o hello -Istdc++ To use c++ 2011 standard g++ hello.cpp -o hello -std=st11 First, create a folder (a2part3) for this part, to have all the programs and results. A Simple Shell to run one Command with File Redirection Design and implement a simple shell program to handle “one command” with file redirection. Here we use the following file-redirection symbols as follow: “” for output, “=>>” for append. For example, “Is => out.txt” will output the result of the command to a file named out.txt. Note. You should use the sample program (provided below) as your base code to implement this part. Warning: Do not use any “system…)” function call throughout this assignment. For example (and for your test cases) whoami date pwd Is => outl.txt We > out2.txt wc
Expert Answer
Answer to Warning: You should not use “system(…)” function call throughout this assignment. Note. You may use some sample code p… . . .
OR

