This assignment assumes
you have read the sections of Sobell specified on the course website.
You should find the notes, and the two bash script references from the
notes handy as well.
You must use your rlogin account or your own installation of linux when you analyze these questions. In all cases, your answers will be tested on the CentOS environment on rlogin.
You may work in pairs for this assignment. If you choose to work with
a partner, make sure only one of you submits a solution, and that names
and PIDs for both of you are listed as described below.
For question 1 type your answers in a plain text file named HW03.txt ;
put the names and PIDs of both partners at the beginning of this file.
For each of questions 2 and 3, you will write a single bash shell
script; be sure to name your scripts exactly according to the
instructions in the questions.
When you have completed the assignment, you will create an uncompressed tar file containing your HW03.txt file and
completed script files piggy.sh and piggy2.sh , and nothing else.
Submit your file to the Curator system by the posted deadline for this
assignment. No late submissions will be accepted.
You will submit your answers to the Curator System (www.cs.vt.edu/curator) under the heading HW03.
Consider the following bash shell script:
#! /bin/bash
#
# File: F.sh
F() {
if [[ $# -ne 2 ]]; then
echo “### error message 1 would be written from here”
exit -1;
fi