Corning Community College
CSCS1730 UNIX/Linux Fundamentals
Write a wrapper script around a long division generator in order to create a functional letter division generator in the pctX style.
As an exercise in toning your abstraction abilities (literally seeing one thing, but understanding and using it as something else), there will be a number of 'generic' terms used throughout this (and other) documents throughout the course, requiring you to substitute in the pertinent information (else face confusion or error).
Some examples:
This sort of abstraction is very similar to that we will find in our utilization of variables in programming, where we can have a “name”, but the data associated with it can change based on various conditions.
Do not be a literalist computer! Start to exercise your abstraction abilities.
This document is written with TWO locations in mind:
There are commands you can ONLY run on one system or the other. Pay attention to any prompt cues in the given examples (or section headings, context of language leading up to any examples).
For example:
Please pay attention to your prompt, so you can perform the needed activity on the correct system.
Please be sure to familiarize yourself with the pertinent content in:
Please familiarize yourself with the table of contents and or index of the various resources, and sample various content to connect yourself with deeper understanding into the concepts being called upon in the current activity.
Your program should:
To obtain project data, you will need to satisfy the following prerequisites:
If all those conditions are met, you can use the grabit tool to obtain the project, as follows:
lab46:~/src/SEMESTER/DESIG$ grabit DESIG ldg0 make: Entering directory '/var/public/SEMESTER/DESIG/ldg0' '/var/public/SEMESTER/DESIG/ldg0/Makefile' -> '/home/USER/src/SEMESTER/DESIG/ldg0/Makefile' '/var/public/SEMESTER/DESIG/ldg0/README' -> '/home/USER/src/SEMESTER/DESIG/ldg0/README' '/var/public/SEMESTER/DESIG/ldg0/ldg0.sh' -> '/home/USER/src/SEMESTER/DESIG/ldg0/ldg0.sh' '/var/public/SEMESTER/DESIG/ldg0/ref_ldg0.aarch64' -> '/home/USER/src/SEMESTER/DESIG/ldg0/ref_ldg0.aarch64' '/var/public/SEMESTER/DESIG/ldg0/ref_ldg0.armv7l' -> '/home/USER/src/SEMESTER/DESIG/ldg0/ref_ldg0.armv7l' '/var/public/SEMESTER/DESIG/ldg0/ref_ldg0.x86_64' -> '/home/USER/src/SEMESTER/DESIG/ldg0/ref_ldg0.x86_64' make: Leaving directory '/var/public/SEMESTER/DESIG/ldg0' lab46:~/src/SEMESTER/DESIG$
At which point you can change into the newly created and populated ldg0 directory.
If you don't have a monitor, you likely are logging into your pi remotely (doable, and good intra-system practice)
Once your ldg0 project files are 'hg' added to your repository on lab46, commit and push.
On your pi, to obtain those files there, be sure to be in your repository, and 'hg' pull and update.
NOTE: To avoid repository conflicts, ALWAYS check for any incoming pull/update transactions before doing a commit/push. Problems occur when you forget (this is an issue on both lab46 and your pi).
Run your script:
lab46:~/src/SEMESTER/DESIG/ldg0$ ./ldg0.sh
To successfully complete this project, the following criteria must be met:
To submit this program to me using the submit tool, run the following command at your lab46 prompt:
lab46:~/src/SEMESTER/DESIG/ldg0$ make submit Project backup process commencing Taking snapshot of current project (ldg0) ... OK Compressing snapshot of ldg0 project archive ... OK Setting secure permissions on ldg0 archive ... OK Project backup process complete Submitting DESIG project "ldg0": -> ../ldg0-DATESTAMP-HOUR.tar.gz(OK) SUCCESSFULLY SUBMITTED lab46:~/src/SEMESTER/DESIG/ldg0$
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
What I'll be looking for:
104:ldg0:final tally of results (104/104) *:ldg0:obtained via grabit by Sunday before deadline [13/13] *:ldg0:script runs with no errors [13/13] *:ldg0:script performs stated task/algorithm [13/13] *:ldg0:script output conforms to formatting expectations [26/26] *:ldg0:script conforms to project specifications [26/26] *:ldg0:runtime tests of submitted script succeed [13/13]
Additionally: