Submitting Source Code

Submission of source code will be by anonymous ftp. Please do maintain a copy of the source code in your area as well and do not give anyone permissions to access this copy. Unix users would find ftp installed on their systems. Windows 95/NT users can download one of the shareware programs CuteFTP or WS-FTP Pro, or the freeware program FreeWay.

The steps for submitting source files the first time are as follows:

  1. ftp to the computer ftp.cs.jhu.edu
  2. Give "anonymous" as the login id.
  3. Give your e-mail address as the passwd.
  4. Change directory to pub/bagchi/ds/
  5. Create the new directory "YourLastName.YourFirstName.xxx", using your last name, your first name and a short "password" for "xxx." E.g., "Shmoe.Joe.cricket".
  6. Change directory to this new directory (what ever you named it).
  7. Create a Proj1, Proj2, Proj3, or Proj4 directory (depending upon the assignment number) and change directory to this subdirectory.
  8. Send all of your source files.

You can view all the files and their last-modified stamps inside this directory (which only needs to be created once). You can create subdirectories in this directory, such as proj1, proj2, and so on. You can delete and over-write the files in this directory. It is as if this directory is owned by you. It is important, therefore, that only you know the name of this directory, because its parent directory, pub/bagchi/ds, is not readable by anyone but the TA.

The following is an example sequence of Unix ftp commands that user jshmoe would use to submit a bunch of programs:

% ftp ftp.cs.jhu.edu
Connected to condor.cs.jhu.edu.
220 condor.cs.jhu.edu FTP server (Version wu-2.4.2) ready.
Name (ftp.cs.jhu.edu:jshmoe): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password: jshmoe@jhu.edu [but this didn't appear on the screen]
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ascii
200 Type set to A.
ftp> cd pub/bagchi/ds
250 CWD command successful.
ftp> mkdir Shmoe.Joe.cricket
257 MKD command successful.
ftp> cd Shmoe.Joe.cricket
250 CWD command successful.
ftp> mkdir Proj1
257 MKD command successful.
ftp> cd Proj1
250 CWD command successful.
ftp> mput *.c
[ ... all my C source files were sent ... ]
ftp> quit
221 Goodbye.

The next time he can just go directly into Shmoe.Joe.cricket, create his Proj2 directory, and deposit the next set of source files there. He can list the files in that directory using the "ls" command in ftp, and delete files there using the delete command. To see what other commands are available you can type "help" in ftp.

DO NOT OVERWRITE ON YOUR FILES AFTER THE DEADLINE. This will set the timestamp to the last overwrite and induce me to believe that you have submitted your stuff late. Please Email me your name, ssn and the name of your directory before submitting assignment 1. If this does not work for some reason please contact me and we will arrange for you to submit by email.

Back to the 600.226 Data Structures homepage.