Question: Given the following two lines of code, which environment variables will the new process started by execve() have? v[0] = /bin/cat; v[1] = argv[1]; v[2]

Given the following two lines of code, which environment variables will the new process started by execve() have?

v[0] = "/bin/cat"; v[1] = argv[1]; v[2] = NULL;

execve(v[0], v, NULL);

A) No environment Variables

B)The environment variable ARGV1=/bin/cat

C) The environment variable ARGS=NULL

D) The environment variables of the parent process

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!