subject

Consider the following C program parent. c (compiled to executable parent): #include extern char** environ; int main(int argc, char** argv) { argv[0] = "child"; execve("child", argv, environ); return 0; } Also, consider the following C program child. c (compiled to executable child): #include #include int main(int argc, char** argv) { int i; for(i = 0; i < argc; i++) printf("%s ", argv[i]); printf("%d", getpid()); return 0; } Suppose that we run the parent program with this command: ./parent bird cat dog Also, suppose that we use ps while the program is running to determine that the PID of parent in execution is 24712. Exactly what is printed?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
You know the right answer?
Consider the following C program parent. c (compiled to executable parent): #include extern char** e...
Questions
question
Mathematics, 02.04.2020 18:51
question
Chemistry, 02.04.2020 18:53
question
Mathematics, 02.04.2020 18:53
Questions on the website: 13722363