Assignment #1: Unix programming -- Due Sept. 10, 1999 6:00pm
Unless you have some previous Unix experience, you will need to consult, read, and
understand several Unix manual pages. This may require you to search for information whose
whereabouts are unknown to you. This is the point of this exercise. For this exercise
only, you may work with other students.
Carry out the following tasks.
- Change your finger information so that your real name appears in it.
- Change your shell to tcsh.
- Send a message to the csd.cmsc330 newsgroup.
- Take a look at the class home page, http://www.cs.umd.edu/~als/cmsc330-f99/index.htm.
- Compile the C++ program in file ~asussman/fact.C . It takes one integer argument on its
command line. Given an integer input, n, the program computes n!. Using the gdb debugger,
run the program with an input of 5.
To show that you've completed the assignment, do the following.
- Capture finger info. to an ASCII file.
- Same as #1.
- We'll see this in the newsgroup.
- Save the page to a file.
- Use the script program to capture your use of gdb. Use the debugger to show the program
stack when it reaches the base case of the recursion.
- Create a tar file containing all the files you've just created and submit it using the submit
program.