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, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
In what way is your social media footprint related to your digital id
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999—2002 as well as all vehicles in its guzzler line from model years 2004—2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
Answers: 2
You know the right answer?
Write a program using the "execvp" command to execute commands given from the command line. For exam...
Questions
question
Mathematics, 05.01.2020 15:31
Questions on the website: 13722361