Assignment: Output Redirection and Mail
The purpose of this assignment is to demonstrate your ability to execute simple Unix commands with options and arguments, redirect the output of these commands to a file, and mail that file's contents.
For security and administrative reasons, you must use the Unix account supplied to you by the University to prepare and email your assignment--failure to do so will result in your assignment not being graded.
Create a Unix file using output redirection that shows only the standard output (not the commands themselves) of all of these commands in this order:
- The output of the pwd command.
- The output of the uname command with the -a option.
- The output of the cal command for the month of August, 1987.
Email the contents of the file you've created that shows the standard output of all these commands. (Hint: an easy way to do this would be the one-line mail trick.)
Remember, check for a receipt from me to make sure that I received your assignment before you consider the assignment done--remember "It's not complete until you get your receipt!"
GradingYour assignment will be graded according to criteria I set up for this tutorial.
For the content score, each of the 3 commands is 20% of the 60% total. Scoring for each of these 3 commands would get:
- -6% for incorrect command used
- -6% for incorrect or missing options or arguments
- -6% for showing the command when only the standard output should be shown
Turning in Your Assignment
Your assignment is due by the time listed on the syllabus. Use these procedures for turning in your assignment. Your assignment will be graded according to criteria I set up for this tutorial.