Question: Assignment 2 will introduce executing process from a child process. Use the execvp ( ) and fork ( ) commands to accomplish this. Your program

Assignment 2 will introduce executing process from a child process. Use the execvp() and fork() commands to accomplish this. Your program should:
Check to verify the fork was created
wc (Word Count) the 1.cpp file on the child process
Print the results to the standard output
Take a look at C++ Execvp examples to assist you in this assignment
Save the file as 2.cpp. Each of the bold bullets will count as 1/3 of the grade for this assignment. For example, if you successfully check to verify the fork was created and run the word count, but fail to print the results, you will only be created for completing 2/3s of this assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!