======================= CST8129 Lab Exercise #1 (Week 3) ======================= -IAN! idallen@ncf.ca Due: 13:00 Friday September 13, 2002 Late penalty for this assignment: 20% per day Marks: 1% Purpose: - produce an acceptable Submission Label - submit plain text (not word processing) - review some of the work done so far Hand in: online submission only - no paper, no diskettes Part I ------ Read the Assignment Submission Standards via the button on the left of my College home page (/~alleni/). In the VI text editor, prepare an assignment submission label in the exact form given, for example (this is the example from the web page): Student Name: Eileen Dover Algonquin EMail Address: dove0001 Student Number: 074-210-779 Course Number: CST 2001 Lab Section Number: 021 Professor Name: Ian Allen Assignment Name/Number/Date: Homework 3 due July 31, 2010 You will be asked to include this type of submission label at the top of most files that you hand in. Follow the exact directions given in the Assignment Standards web page. Spelling and punctuation count - for full marks, use the exact spelling of the fields given above. Part II ------- Put a copy of the Assignment Submission Label into a file. Underneath the label, in the same text file, answer the following questions: II.1. what keyboard sequence usually generates a SIGINT signal? II.2. what keyboard sequence usually generates an EOF on input? II.3. what keyboard sequence usually generates a "process stop" signal? Number your answers as shown above. Change the permissions on this file to "read-only" for you, "read-only" permissions for group, no permissions for other people. In the Linux lab, copy your answer file to this location: ~alleni/cst8129/02f/lab01exercise/xxxxnnnn.txt where xxxxnnnn is your Algonquin userid (e.g. abcd0001). Files with the wrong name or wrong Unix permissions will be penalized. Part III -------- Put another copy of the Assignment Submission Label into a file. Insert "#" characters in front of every line to make the lines into shell comments. In the same text file, read in the modified script example 9.2 that you typed in last week (see week02notes.txt). Make sure the first line of the file is the line: #!/bin/bash -u (Delete and move the line to the top of the file if necessary.) The assignment submission label will follow that first line. The rest of the script will follow the label. Test the script to make sure the output resembles that shown in the textbook. (Did you get the back quotes typed in correctly?) Change the permissions on this file to "read-execute-only" for you and for group, no permissions for other people. In the Linux lab, copy your answer file to this location: ~alleni/cst8129/02f/lab01exercise/xxxxnnnn.sh where xxxxnnnn is your Algonquin userid (e.g. abcd0001). (Be careful not to overwrite the xxxxnnnn.txt file from above.) Files with the wrong name or wrong Unix permissions will be penalized. Your exercise is due online before the date and time given above.