OPS435: Assignment #1
HAND-IN REQUIREMENTS:
This assignment consists of 2 parts (stages). The following table displays the due date and a brief description of each of these stages:
Stage |
Description |
Due Date |
---|---|---|
1 |
Create a shell script that graphically prompts the user for information and then assembles and publishes a webpage. The webpage will be published in user's "public_html" directory in their Matrix account . No error-checking is required. |
Friday Feb. 19th, 2010 @ 11:59:59 p.m. |
2 |
To be announced...
|
To be announced... |
OVERVIEW / REQUIREMENTS:
STAGE
#1:
You are an adminstrator of a large Linux system. One of the many duties you perform is webpage administration. One boring and repetitive task is to create webpages that show programming examples for programming students.
Each webpage contains the same format. Below is a list of the webpage contents:
Here is a link to a sample of a typical webpage for a C Programming example:
[ Webpage appearing in web-browser ] [ html code of Webpage ]
You want to assign this task to other people, but no-one else knows how to create a simple webpage. Your task is to create a portable Bash-shell script called makePage.bash that will allow non-techie employees create those type of webpages. Your shell script is designed to accept one argument, the pathname of a webpage file to be created or overwritten with new webpage content. You can assume that your instructor (when marking your assignment) will issue your script with one argument (i.e. no error checking is required).
HINTS / SUGGESTIONS: WARNING: Sample
Runs (STAGE #1)
Here are a few YouTube videos to show you how this shell script will work: STAGE
#2: ASSIGNMENT SUBMISSION INSTRUCTIONS: You MUST run the programs below to submit your assignment stages (no exceptions). The following table displays which commands to run for submitted stage1 and stage2 (when available).
STAGE SUBMISSION PROGRAM PATHNAME (in Matrix) STAGE #1 Not available yet... STAGE #2
Not available yet... Shell scripts
are to be submitted from your Matrix account from the submission scripts
displayed above – no exceptions. If you do not
submit your script on time, there will be a 10% penalty.
Late
assignments will carry a penalty of 10% per day. Since assignment is
submitted electronically: weekends count!.
If your script
is not functional when tested, or produces too many incorrect
answers, it will receive a mark of zero and must be resubmitted with
in 7 days. Every assignment will be checked for
plagiarism. If any copying is discovered, both students will
receive a mark of zero and a "Dishonesty Report" will be entered in
both student's files.
Good Luck :)
The shell script will indicate if the file will be created, or if the file "already exists" and will be overwritten by the new webpage content. The Shell script will address the user by their full name, and then prompt the user for data (in the following order):
You can assume that when marking your Assignment #1 - Stage1, your instructor will only use valid color names, and valid URL names to existing images.
Here are some other important hints or suggestions:
Also, you can use the man pages to learn how the zenity command works.
Since the "Zenity" command produces a dialog box, you CANNOT run this command remotely connected from home!
Therefore, there are 2 approaches to working on this assignment:
This means you should complete your assignment as soon as possible!
(You can also view full screen, pause and play (replay) these Youtube videos)...
To Be Announced...
GRADING
Once resubmitted, such assignments can receive a
maximum of 55%.