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 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
Get step-by-step solutions from verified subject matter experts
