Carnegie Mellon University
CMU, GSIA 46-929
Using Andrew Account to Submit Homework
This document offers instructions for using the WS-FTP File Transfer Client
for Windows 95 and Windows NT, hereafter called FTP, which is available
in almost every computer lab at CMU. This page has the following links:
If you have any questions, send e-mail to email@example.com..
Using Unix Shell
In order to hand in homework using FTP, you will need to complete the steps
If you are using a CMU cluster machine, begin with step 1 below. Otherwise,
open the FTP program on your computer and then skip to step 3 below. Here
is a quick summary of the steps. Details for each step follow this listing.
CMU only: Open an FTP session window
Connect to andrew.cmu.edu
Navigate within andrew.cmu.edu
Transfer your files to the folder on
Be sure you select ASCII formatting before making the transfer.
Revise your submitted files
Keep a copy of your work on diskette.
Remember that copies of your work stored on andrew.cmu.edu can
provide a backup (or saved copy) of your work but nevertheless, it is a
good idea to keep copies of all of your programs on diskettes.
Here are the steps in detail.
CMU only: Open an FTP session window.
To open an FTP session window on a PC cluster machine at CMU/Heinz,
do the following:
Below is a sample of how the screen may appear before the last click above.
Left click on Start, which is at the bottom lefthand corner of your
A menu will appear.
Left click on Programs. A menu will appear.
Left click on Network Services. A menu will appear.
Left click on WsFTP. A menu will appear.
Left click on WsFTP.
Connect to andrew.cmu.edu.
After the WS-FTP program loads, a Session Properties window appears
similar to the one shown below.
Make an FTP connection to andrew.cmu.edu by doing the following:
Left click New button in the Session Properties window.
Enter unix.andrew.cmu.edu in the Host Name/Address text box.
To accomplish this, type cs.heinz.cmu.edu in the box beside
the words Host Name/Address.
Type your user name in the User ID text box.
Type your password in the Password text box.
When a password is typed into the Password text box, for security
reasons, asterisks appear rather than the typed letters.
Left click on the OK button.
Navigate within andrew.cmu.edu.
Once the connection is made to unix.andrew.cmu.edu, the ftp
window will show contents on the two larger text windows. The larger text
window on the left side is the Local System window. It reflects
what is stored locally on your computer. Similarly, the larger text window
on the right side is the Remote System window. It reflects what
is stored on the remote computer, which in this case is unix..andrew.cmu.edu.
Below is an example of what the screen may look like at this point (the
right window may have additional contents).
The Remote System side (on the right in the ftp window) displays the
files in the current directory (or folder). You will find that you are
in the directory of your andrew account after the connection is made.
*The following steps are critical
for you to go to the course account.
Under your directory, there are total 7 folders pre built for
the assignments listed in the Class Schedule.
Click "chgdir" button on the up-right corner of the remote system
A dialog window pops up, you should input the full path of the course account"/asf/andrew/course/46/929"
Click "OK". You will arrive at the course account. Under the course account,
a directory is built for each enrolled student. Your directory is named
after your ID on your E-Mail address you registered on the class roster.
For instance, if your E-Mail address is firstname.lastname@example.org, the
name for your directory is abc1. It is illustrated as below.
Click your handle next to your E-Mail ID to enter your directory
Transfer your files.
Enter into the folder for an assignment by clicking the handle.You
must copy all files that are part of your solution to a problem into that
You must select ASCII as the format in which you want to transfer
your file. There are three options for how to transfer files: ASCII, Binary,
and Auto. These options are listed in the FTP window underneath the contents
of the Local System and the Remote System. Before you transfer any files,
left-click once with your mouse on the white circle beside the word ASCII.
The circle beside the word ASCII should have a black dot in it before
you transfer any files.
On the Local System part (left side) of the FTP window, navigate to where
you have stored your work. The Remote System part (right side) of the FTP
window should be in the directory in which you want your work to be located.
Refer to the previous subsection entitled Note on Navigating between
Folders, for instructions on how to navigate up and down the directory
One way to copy a file is to double left click on the file you want to
copy. In this case, the file will automatically be copied to the other
|Be Careful! Distinguish between
Folders have yellow icons in the shapes of folders beside them. Files,
on the other hand, have icons beside them that look like white pages with
zeros and ones on them.
Double-clicking on a folder will show you the contents of that folder.
Double-clicking on a file in the Local System will copy it to the
Remote System, and double-clicking on a file in the Remote System
will copy it to the Local System.
Another way to copy files is to use the <-- and -->
buttons as described below.
Left click on the file you want to copy the remote system; be sure to click
just one time to select the file.
Between the Local and Remote System sides of the FTP window are two buttons
with arrows on them.
Click on the --> arrow to copy the selected file from your Local
computer to the remote machine.
*Note: You can put your file in your folder and look
up the content of your folder. But you are not able to read or open the
files under anybody's folder( including yours).Neither are you able to
take back the files you have put into the folder. The thing is that
if you put your file on the account, you can not do anything on it.
So below is a very important announcement helping you revise your submitted
The --> arrow copies files from the Local side to the Remote side.
The <-- arrow copies files from the Remote side to the Local
Revise your submitted files.
If you like to hand in a revised edition
your work to the course account, your are suggested to put the new file
under the same folder with the old one and differentiate it from the old
one with a different and meaningful name. For instance, suppose I have
submitted my work on Lab1 and put the file--Lab1_nwang.java in the folder
named Lab1; now I find some bugs in the java file and fix them; to submit
the corrected program, I would like to rename the Lab1_nwang.java
Lab1_nwang1.java and put it in the same folder with Lab1_nwang.java.
Keep a copy of your work on diskette.
The copy of the file you store on the remote system using FTP can function
as a backup copy of your work. However, it is still a good idea to keep
copies of all of your programs on diskettes. .
Using Unix Shell
If you like to transfer you files on Unix Shell by such commands as
cp, mv and so on, the thing is very easy; just keep it in mind that use
the full path "/asf/andrew/course/46/929/" as the destination of the
© 1999 CMU. All rights reserved. Financial
Application in Java