Question: Write the c code for the my_exec(char command, char rdfile) function so that it can execute the following command, Is > file. The command argument

 Write the c code for the my_exec(char command, char rdfile) function

Write the c code for the my_exec(char command, char rdfile) function so that it can execute the following command, Is > file. The command argument is a pointer to the string "Is" and rdfile is a pointer to a string "file". Use the correct exec system call that will build the path to the executable based on the user's path environment variable. The command must execute in a child process and the parent must wait for the child to terminate

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!