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

Using Command line in Linux write this compile function in a script file. Ignore 1. assume .info does exists  Using Command line in Linux write this compile function in a

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

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!