How to Electronically Submit the program

Programming projects

Most of the projects are submitted electronically (i.e. by electronic mail or on a floppy/zip disk), because this mode is both easier and faster. While submitting the project, the students are required to turn-in a copy of all the source code.

So the student has to create a directory and place all the files to be submitted and use the submit program as specified by the instructor.

Setting Up Your Environment

The program used for submission depends on the instructor. What follows is just an example.

Lets say that, for cs240B, the program for submissions is – /home/kmgsubm/bin

To access the program in the directory, the path may have to be modified as -

setenv PATH ${PATH}:/home/kmgsubm/bin:

When the path is set, that program can be accessed from the current directory of the student. But if the path is not modified, the complete filename for the program has to be typed. This is where aliases come into the picture. An alias could be created for the complete path and every time the student need to submit, the alias could be used to do the job, rather than typing in the complete path of the program.

Thus for example

<machine>% 240submit -p 1


If the path variable is not set,

<machine>% /home/kmgsubm/bin/240submit -p 1

Options available with the program:

1. -f : force submission. If we have submitted a copy and if we want to overwrite the copy submitted, we force submit the copy. Remember, only one copy will be submitted. The previously submitted copy will get erased.

2. -p : This is mainly for the project number. For example, for the project assignment number 1,

For Example,

<machine>% 240submit -p 1

If it has a -f option , then we are force submitting it.

As an reminder this is just an example and the program that might have to be used could be different.