Obey Your Signals: CSC 209H Summer 2004: Assignment 3 (10% of Final Mark) Due Date: July 14, 2004
Obey Your Signals: CSC 209H Summer 2004: Assignment 3 (10% of Final Mark) Due Date: July 14, 2004
the name of the output file to redirect the standard output of the program. The remaining
arguments are the name of the program to execute and its arguments (if any). The default
value of timelimit should be 10 seconds. If an output file is not specified, you do not
need to redirect standard output.
For example, suppose I have an executable called wastetime in my current working
directory, then I can run it from runprog as follows:
runprog -t 5 -o junk wastetime
If wastetime takes longer than 5 seconds runprog will kill it. Anything wastetime has
written to standard out will be in the file called junk.
You will want to write at least one program to help you test runprog. You do not need to
hand this program in electronically but do include the source code for this in your paper
submission.
Submission
All assignments in this course require you to submit all your source code electronically.
You are also required to hand-in a printed version of your code and the testing you
performed to the TA in the tutorial when the assignment is due. Failure to follow this
may result in a grade of 0 on the assignment. In addition, we may perform electronic
testing on your program. The conventions specified in this handout should be sufficient
but keep checking the newsgroup for updates/corrections.
Enjoy!