Question: Assume the Linux cat is in /bin directory When running YOUR sh with cat file1 file2 file3> outfile 8. Write C code to do output

Assume the Linux cat is in /bin directory When running YOUR sh with cat file1 file2 file3> outfile 8. Write C code to do output redire ction > For the above commnad line cat filel file2 fie3> outfile Draw a diagram to show exactly what's YOUR myargv in the execve("/bin/cat", env) call? r myargv, What's the value of r? 9. WriteC code to do pipe in the command line cat filename | grep line Assume the Linux cat is in /bin directory When running YOUR sh with cat file1 file2 file3> outfile 8. Write C code to do output redire ction > For the above commnad line cat filel file2 fie3> outfile Draw a diagram to show exactly what's YOUR myargv in the execve("/bin/cat", env) call? r myargv, What's the value of r? 9. WriteC code to do pipe in the command line cat filename | grep line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
