subject

Write a program using the "execvp" command to execute commands given from the command line. For example: the "./a. out who would run the "who" command. The program should support programs with arguments. Other examples could be: ./a. out cp bigfile. txt anotherfilename. txt ./a. out ls -1 /usr ./a. out md5sum bigfile You will overwrite your own executable with the new unix command that is the passed to your program. The program should be able to handle any number of command arguments up to 50. Using the getrusage() function which is located in sys/resource. h find out what your child is doing. Print out the time your child spent in user mode and kernel mode. Comment in your report on what you found. Report Individual work only (no collaboration is allowed). Submit via Canvas. Along with the program source code, please also submit a short report (< 1 page) including the details of your implementation, such as on what platform (machine) did you develop and test your programs, what compilers you use, and how you compiled your programs, etc. You may also include any other discussion that you think is relevant. Please do NOT submit compiled binary files. Code from non-class sources does must be cited, and your program must contain original content. Write a program using the "execvp" command to execute commands given from the command line. For example: the "/a. out who would run the "who" command. The program should support programs with arguments. Other examples could be: ./a. out cp bigfile. txt anotherfilename. txt /a. out ls -1 /usr /a. out md5sum bigfile You will overwrite your own executable with the new unix command that is the passed to your program. The program should be able to handle any number of command arguments up to 50. Using the getrusage() function which is located in sys/resource. h find out what your child is doing. Print out the time your child spent in user mode and kernel mode. Comment in your report on what you found.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
You know the right answer?
Write a program using the "execvp" command to execute commands given from the command line. For exam...
Questions
question
History, 16.05.2021 01:00
question
Mathematics, 16.05.2021 01:00
question
Computers and Technology, 16.05.2021 01:00
Questions on the website: 13722367