The Ws_ftp Tutorial

What is File Transfer Protocol (ftp)?

The term File Transfer Protocol (ftp) was originally developed as a Unix function to allow files of all kinds (ASCII -- text files; and binary files -- programs, executables and data files that use machine codes) between two computers over a Local Area Network (LAN) or Internet network. The software allows a client (the user's local computer) to exchange files with a remote server. The client must have access privileges on the remote server. If the client has an account or formal privileges, then a user ID and password are required to log in. Some servers allow another type of informal privilege called an "anonymous" or guest account. A typical anonymous account uses "anonymous" as the user ID and the user's email address or some similar mechanism to log in.

Overview: Ws_ftp as the Web builder's Swiss Army knife

The Ws_ftp program can do some amazing and useful things that make the life of any Web developer much easier. This tutorial is by no means comprehensive and is not designed for the power user. The student who wants answers to more complex questions or wants to move into the power user class should visit the Ws_ftp Pro Download site and complete documentation (needs Acrobat Reader). The documentation is available online, covers 102 pages and is an excellent example of how to create user documentation.

The student may notice that simple file transfer of the finished Web page can be done efficiently by the Netscape 4.0 Composer. While it can perform some of the functions of Ws_ftp, it cannot do many of those that a student needs to correct errors and false starts resulting from inexperience. Further, the university and some corporations do not support all the Netscape functions (the Publish function, for example). Thus, the need for familiarity with Ws_ftp.

A few of Ws_ftp's useful operations:

    It can transfer files between student's computer (Windows 95/NT) and the website (Unix machine).
    It can transfer files to/from machines that allow anonymous ftp.
    It can transfer files to/from machines where the user has accounts.
    It can rename, delete, view, and execute program files.
    It can provide data about creation dates, sizes, and access.
Ws_ftp is like a Swiss Army knife because it combines so many necessary tools into one simple package. The program reduces the need for a complex background in Unix and Windows command languages to a bare minimum.

How to log in

The Login Dialog Box below pops up when the program is activated. The Profile Name and the Host Name must match. The Host is the remote host that you wish to log into, and you must have an account there (as students do on the CS computer). Normally, you would need either the domain name of the computer or its IP address. For instance, the CS computer's domain name is cs.uml.edu. For Lab 1, you received a user ID based on your first and last name and a random password. In Lab 2, you changed this password to one that you could easily remember..

    How to log in to a machine where you have an account.

    Explain how to use anonymous login for transfer of files from ARCHIE and gopher sites

How do you move through the directory structures of the user's machine and the remote host?

Assuming that you logged in correctly, the Login Dialog Box is replaced with the following Dialog Box that shows, on the left, the directory of the machine that you are currently at (normally the Windows machine in the Lab). The right side is normally the CS Department's Unix machine. Hence, the first view of the Unix machine is your Home Directory, and you should see the public_html directory that you created in Lab 2. Normally, when working on Web pages, you should use the CS department's  lab machines to develop, correct  and test until the file is ready to transfer to your public_html directory,  where it becomes part of your website. In general, you do not want the public to see anything but your final effort, which should have no spelling errors or grammatical mistakes.

Note the top window on the left hand side shows the working directory of the local computer (in this case, C:\Program Files\WS_FTP). Similarly, on the right hand side (the remote computer) you can see that the author's Unix home directory.
 


    The large windows on either side list the sub-directories and files stored in the working directories of the local and remote computers. On the left side, the light blue rectangular icons followed by [ ] signify the storage devices (the A:drive, the C: drive, the D: drive, etc.) on the local machine. For this class, you will normally use the A: drive (floppy drive) to store your material. This is because students must share the machines, and cannot be guaranteed that someone will not change or delete the files stored on it between labs. This also allows you to carry your work home for further work and to protect it. The process of transferring material by floppy disk from one machine to another is sometimes known as "sneaker net" (in reference to the fact that one must walk from computer to computer). The process of saving two or more copies of computer files is called "backup;" every student should backup his or her files.

    For changing directories on either side, the principles are the same.

How to transfer a file from one machine to the other

Preparing to Move files from the Windows working directory to the Unix public_html directory.

The above dialog box shows that the user has located and highlighted (in blue) the file wsftplog.jpg in the local system directory A:/lab 9 . To move the highlighted file to the remote system's public_html directory, you must go over to the right hand side, click on the public_html directory, and click on ChgDir. This will change your working directory to public_html. At this point, examine the target directory, for files of the same name and extension as the one you want to transfer. The latest version of Ws_ftp will warn you if try to store two files with the same name in the same directory, but do not count on it. Check for yourself. If a file of the same name does exist, then you must delete it before you move the the new one into the public_html directory. If you are unsure if you will need the old file, rename it before you transfer the new file.

Assuming that you have highlighted the file for transfer and have the correct Unix directory opened as the target directory, what is the next step?
 

Moving the file from the local system to the remote system and visa versa.

The two arrows in the center column indicate the direction of file transfer.
  Talk about the special case where a file is in the student's working directory and will replace one in the Web site.

How files get "fixed"

Highlighting the file activates the remaining buttons on the vertical bar in the selected working directory.

How to find file sizes and the dates of recent file changes

The large window that lists the files and sub-directories of the current working directory displays columns labeled "Date" and "Size." For example:

The directory INTERNET was created on 980303 (Mar. 3, 1998) at 21:44 (9:44 PM) and contains 102 Kb of information. Kb stands for "kilobyte." A kilobyte is 1000 bytes of data (in a text file, roughly 1000 characters or 200 words).

The Folder icon denotes a directory.

The icons with tiny 1s and 0s denote files.
 

How to re-establish a connection to the remote host

  1. Why are connections lost? -- Time-outs, computer crashes, and network failure are the most common reasons.

  2. Timeouts occur after a preset time without any program activity. This protects users from evil-doers if they walk away from the computer and forget to logout.
  3. How do you know if you have lost a connection?

  4. The message area below the large windows will have some form of error message. Watch for messages that say "could not transfer," "error," etc. On newer computers, if you have your headphones on you will get a warning sound whenever you have a failure or error.
  5. How do you log in again?

  6. Click on the Close button (lower right corner of the dialog box) and it will change to a Connect button. Click on the Connect button and you will get a Login Dialog Box. Repeat the login process.
  7. How do you log into another computer?

  8. As in the above re-login case, click Close, then click Connect. You will need the new computer's domain name or IP address. Fill in the the Profile and Host name with that information. Then you will have to use the User ID and Password for that computer issued by that computer's system administrator. If it is an anonymous account, follow the directions that will appear as to what to use for a password.

    Although many ftp sites are reachable through the World Wide Web, there are still those that use ARCHIE, Gopher, and other programs to allow users access to files over the Internet..

How to get help

You will find the Help button in the middle of the bottom tool bar. Learn to use the Help buttons to find out the answers to your questions.

How to log out

Always log out before leaving the lab or the computer you are using. Click on the Exit button in the lower left corner. Do not depend on the good nature of your friends and never tempt your enemies.

Other features worth mentioning

The combination of a well-designed ftp program and an informed and motivated user will lead to shorter connect times, lower communication costs, and a more productive online experience. A careful reading of the supplied Ws_ftp user's manual will introduce more effective techniques than can be covered here, such as drag-and-drop file management, point-and-click transfer of files, and profiles of frequently visited sites.
    .

References:

Ws_ftp Pro -- Download site and complete documentation (requires Acrobat Reader)

An Excellent FTP Tutorial by Professor Davidson, UNCA

A Starting point for information on Gopher and Veronica, Prof Paula Davidson,UNCA


BACK

  The program Ws_ftp is developed and copyrighted by Ipswitch, Inc. of Lexington, MA.