Work Area for Assignments and Sample Data

Work for all assignments should be done in a designated directory. Our course data is available at: /pub/cs/grwoo/cs160a

Script Sessions

Most in-class exercises and assignments will done as a script session. Each script session must be placed in a separate file.

Be careful when using the script sessions. By default, the output name is typescript. script will silently overwrite any existing typescript file which may be used for another part of the assignment. Try and develop a standard naming scheme for yourself that is meaningful and recognizable for teammates.

Remember! Make sure that whatever name you choose is not the name of an existing file. Remember, Unix doesn't warn if you do this - it simply erases the file with the same name and starts a new one!

Each script session should begin with a standard descriptive header:

Example

For example, if you are working on Assignment Two. You should begin with the script program and name the script file using a command such as:

$ script asmt02.script

This command starts script and names the script file asmt02.script

Unix will respond: Script started, file is asmt02.script

The first lines you should then type after starting the script program are:

$
$ #********* Assignment Two Jane Doe
$ 
$ date
(the date will appear here)
$ pwd
(the name of the current directory will appear here)
$ id
(your user name and other information will appear here)
    

Handing in your Script Output File on Canvas

Handing in your script file on Canvas can be tricky if you are not working from a local machine.

If you are working on a local Linux machine, simply navigate to the Canvas website to upload the output script file.

If you are working from hills, then you must use a file transfer program to move the file to your local machine. One simple way to do that is to use scp. For example, if your file is in your home directory on hills, you can use:

scp username@hills.ccsf.edu:typescript .

If you are on a Windows machine, you may use a program such as WinSCP to transfer your output file to your local machine. Then, use Canvas to make your first upload.