InterviewSolution
Saved Bookmarks
| 1. |
Computer Science Write a C/C++ program that performs the tasks described below.If there is just 1 command-line argument and it is-hwyou should simply printhello worldand then exit(0).The program should fork one process. Have the new process execve theprogram named /bin/sed. Use dup2 (or dup) with a pipe to establish a wayfor the original process to capture stdout from sed. The program willaccept command-line arguments that it passes along to sed via execve.Any valid sed arguments may be used during testing. Sample executionsare given below.Be sure to have this: |
| Answer» CENTRAL PROCESSING unit is the WRONG ANSWER for answer follow me | |