Question: Using Command line in Linux write this compile function in a script file. Ignore 1. assume .info does exists compile () 1. Uncomment the line
compile () 1. Uncomment the line compile in the Main program 2. Check that the .info exists. If it does not, echo an error to stdout and stderr and call exit 1. 3. Extract the compile command from .info o Use command substitution, cat and cut . 4. Call eval on the command you extracted. Make sure to pipe stdout and stderr to 5. Write a test to see if the last thing executed returned 0 /devull o If it did not, echo an error saying the lab did not compile to stdout and stderr and call exit 1 6. Return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
