It is possible to FTP to the Teaching Theater file server from a UNIX machine for transferring files only.
 
 
 
    To connect for transferring files to the Teaching Theater file server, at the UNIX system prompt type:
 
      ftp ttclass.umd.edu
 
    When the FTP program connects to the Teaching Theater, you will see the following prompt:
 
      Connected to ttclass.umd.edu.
220 ttclass Novell NetWare FTP server (V1.39t), Copyright © 1992-97
MurkWorks Inc.
Name (ttclass:login-id):
 
    The login-id that appears in the Name prompt, will default to your login id on the UNIX system that you are currently on.
 
    Enter your Teaching Theater Novell login id (i.e., bs04) and press the <Enter> key. You will be prompted for your password. Enter your password and press the <Enter> key. When the connection has been made, your prompt will change to the following:
 
      230-
230- Teaching Technologies Server (TTCLASS)
230
ftp>
 
    You are automatically placed in your personal files directory (where M:\ points to when you are in the Teaching Theater). You can transfer files to and from the Teaching Theater file server at this point.
 
 
 
    To transfer a file from your UNIX account (the local system) to the Teaching Theater file server (the remote system), use the put command.
 
    Type put at the ftp> prompt and press <Enter>. You will be prompted for the local file you wish to transfer and the name you want the file to have on the Teaching Theater file server.
 
    For example, if you wanted to transfer the file homework.doc to your account on the Teaching Theater, you would type the following:
 
    ftp> put
      (local-file) homework.doc
(remote-file) homewk3.doc
200 PORT command okay.
150 Opening data connection for homewk3.doc (128.8.10.35,1379).
226 Transfer complete.
local: homework.doc remote: homewk3.doc
2105 bytes sent in 0.031 seconds (66 Kbytes/s)
 
     
NOTE:   If the file you wish to transfer is not in the current directory, you must specify the directory path with the file name when prompted for the local file.
 
    The FTP program will display messages letting you know that the file is being transferred. When the transfer is finished, FTP will tell you that the transfer was completed successfully and will display the name of the file on both the local system and the Teaching Theater file server, the size of the file, and how long it took to transfer.
 
 
 
    To transfer a file from the Teaching Theater file server (the remote system) to your UNIX account (the local system), use the get command.
 
    Type get at the ftp> prompt and press <Enter>. You will be prompted for the remote file (on the Teaching Theater file server) you wish to transfer and the name you want the file to have on the local UNIX system.
 
    For example, if you wanted to transfer the file assign4.doc on the Teaching Theater to your local UNIX account, you would type the following:
 
    ftp> get
      (remote-file) assign4.doc
(local-file) assign4.doc
200 PORT command okay.
150 Opening data connection for assign4.doc (128.8.10.35,1399).
226 Transfer complete.
local: assign4.doc remote: assign4.doc
2105 bytes received in 0.023 seconds (88 Kbytes/s)
 
    Again the FTP program will display a message to let you know the file is being transferred. When the transfer has been completed, FTP will tell you that the transfer was successful, and display local and remote file names, file size, and transfer time.
 
 
 
    It is also possible to transfer several files at one time using FTP. The mget (multiple get) and mput (multiple put) commands can be used with the wildcard character * (asterisk) to transfer multiple files easily.
 
    The wildcard characters are used for pattern matching; * matches any number of characters (including zero). For example, *.doc would represent all files ending with .doc. Files named prog1.doc, test.doc, and .doc would all match *.doc.
 
    The mget and mput commands work in the same manner as get and put, but you don't specify a name for the files on the destination machine--they keep their names or are modified to match the naming requirements of the destination machine.
 
    To transfer multiple files from your UNIX account to the Teaching Theater filer server, you would type:
 
      mput local-files
 
    For example, if you wanted to transfer your files for project1, you would type:
 
      mput proj1.*
 
    To transfer files from the Teaching Theater file server to your local UNIX system, you would type:
 
      mget remote-files
 
    For example, if you wanted to transfer the files for assignment 3, you would type:
 
      mget assign3.*
 
    When using both mput and mget, you are prompted to verify that you wish to transfer each individual file. This allows you to use a broad file specification (for example, *.*), but not transfer all of the files specified. Respond to the prompts with either y (for yes) or n (for no).
 
    If you want to bypass the verifications and transfer all of your files without having to respond, this feature can be turned off by typing the command prompt at the ftp> prompt. It can be reactivated by typing the command prompt a second time.
 
 
 
    To get a listing of the files on the Teaching Theater file server, you can use the ls and dir commands. The ls command gives a brief listing of the names of all of the files in the current directory on the Teaching Theater file server. The dir command gives more detailed information about the files on the Teaching Theater file server, including the Novell rights that you have to that file, the file owner, the file size and the file modification date and time.
 
    The !ls command will give you a listing of the files in the current directory on your UNIX account without exiting the FTP program.
 
    The cd command can be used to change directories on the Teaching Theater file server if you want to transfer files to or from a subdirectory. For example,
 
      cd tutorial
 
    would make the current directory on the Teaching Theater file server tutorial.
 
    You can also change directories locally (on your UNIX account) with the lcd command. For example:
 
      lcd cmsc330
 
 
 
    If transferring binary files (files which are compressed or executable), you must set FTP to binary transfer mode by typing binary (or just bin) at the ftp> prompt. To set the transfer mode back to the default ASCII mode, type ASCII at the ftp> prompt.
 
 
 
    A list of usable commands is available while using the FTP program by typing ?. For a brief description of any of the listed commands, type:
 
      ? command
 
    where command is the command you'd like more information on.
 
    An on-line manual page that provides more detailed help on the FTP program is available on the UNIX system by typing:
 
      man ftp
 
    at the UNIX system prompt.
 
    A handout on "Transferring files with FTP" is available from Academic Information Technology Services IT Library. Ask for Handout No. 13.
 
 
 
    When you are through transferring files, you can exit the UNIX FTP program by typing quit.
 
Back to Table of Contents