Computer Science 202
Systems Programming Concepts Using C
Lab 8 - Scrambled Mail
In this lab you are to write a program that will e-mail a scrambled message to a
The input to this program will be supplied on the command line. The first argument,
after the name of the executable file, will be the name of the un-scrambled,
file that is to be e-mailed. The second argument is the number of scrambling passes
that are be be made. The last argument is the e-mail address of the recipient of
your e-mail. For example, the input may look like the following:
mailScramble input.dat 3 email@example.com
A suggested outline of the steps to solve this problem are listed below:
- Generate a temporary file name to be used as the output file for the scrambling.
- Scramble the input file using the program from lab5. DO NOT write the code
into this program, simply call that program from this lab.
- Use the mpack UNIX utility to send the scrambled file.
- Remove the temporary file.
In Class Assignment
Before leaving lab you must demonstrate to the instructor that your code successfully
reads in the command line arguments and generates a unique temporary file name.
Suggest something to me.
The following must be delivered to your instructor via text-only
e-mail no later than midnight of 10th Monday.
In addition, you must deliver to the instructor by the beginning of class on
10th Tuesday the following:
- Source code for your program.
- A printed copy of your source code.
- You may work in teams of two on this assignment. All team members must be
identified to the instructor in writing no later than 9th Wednesday.
- Be careful to whom you address your e-mail!!!!!!!