home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: DFÜ und Kommunikation / SOS-DFUE.ISO / programm / internet / explorer / ftp-how2.txt < prev    next >
Encoding:
Text File  |  1992-08-06  |  6.7 KB  |  125 lines

  1. Getting binary files using FTP
  2. ------------------------------
  3.  
  4.  
  5.  
  6.                GETTING BINARIES VIA FTP
  7.  
  8. Copyright (c) 1991 by Brian O'Neill. Permission to copy this file feely is
  9. given, so long as the file remains unmodified.
  10.  
  11.     FTP stands for File Transfer Protocol.  It allows a person to transfer
  12. files between two systems, generally connect over local area networks or
  13. wide area networks, such as the Internet.
  14.  
  15.     If your hosts system has FTP and is connected to the Internet, you
  16. can access very large amounts of archives available on a number of
  17. systems, such as Simtel20 or uunet.uu.net.  This is a simplified use
  18. manual, and will use two examples, one a TOPS-20 system
  19. (wsmr-simtel20.army.mil, which has a large base if PD/Shareware MSDOS
  20. software), and one Unix system (uunet.uu.net, where archives of the
  21. comp.sources newsgroups are kept).
  22.  
  23.     The simplest way to initiate FTP would be to give the command 'ftp
  24. <system-name>', where <system-name> is the remote system you are
  25. connecting to, either a name (wsmr-simtel20.army.mil, if you have an
  26. entry in /etc/hosts or are accessing a Domain Name Server, such as bind) or
  27. the InterNet address (192.88.110.20, for Simtel20).  After a short wait, you
  28. will be prompted for your username.  If you do not have an account on the
  29. remote system, some systems allow you to use 'anonymous'.  This gives you a
  30. restricted access path, allowing you to access certain files only.
  31.  
  32.     You would then be prompted for a password. If you are using your own
  33. account, give your password. If you are using 'anonymous', the system may
  34. ask you to send your real identity as the password.  What you type doesn't
  35. matter, but it is suggested to give your mail address.  Other systems
  36. need a password of 'guest', or something similar.
  37.  
  38.     After that, you should receive the FTP prompt (usually ftp>), and
  39. now have access.  You can get a directory of files be giving a 'dir'
  40. command, or if the remote system is Unix-based, 'ls -l' will give the
  41. familiar output.  On Simtel20, there is a file available in the
  42. default anonymous ftp directory that explains what Simtel20 is, and
  43. where files are located.  The name is 'SIMTEL-ARCHIVES.INFO.nn, where
  44. ".nn" is a file generation number.  You don't need to specify the file
  45. generation number when requesting the file.  In fact, it's better not
  46. to because you will always get the latest generation that way.
  47.  
  48.     Unix systems will all have the familiar directory structure, and
  49. moving around is done with the familiar 'cd' or 'cwd' command.
  50. TOPS-20 systems have a different structure, but movement is still
  51. accomplished with the 'cd' command.
  52.  
  53.     I will use Simtel20 as the first example. To start, give the
  54. command 'ftp wsmr-simtel20.army.mil' from your shell prompt, or 'open
  55. wsmr-simtel20.army,mil' from the 'ftp>' prompt.  If this host is not
  56. in your /etc/hosts file or you do not have access to a Domain-name Server,
  57. use '192.88.110.20' in it's place.  After a few seconds, you'll be prompted
  58. for your username.  Type 'anonymous', and when prompted for password,
  59. give your e-mail address (more as a courtesy than anything else), or if
  60. you prefer, 'guest'.  You should then shortly get back the 'ftp>' prompt.
  61. If you receive an error message stating that there are too many anonymous
  62. logins, wait a few minutes and try again. Simtel20 has limited access,
  63. especially during normal business hours.
  64.  
  65.     Now, say you want to see what is stored for MS-DOS programs.
  66. Simtel20 is a DEC System-20 running the TOPS-20 operating system.  The
  67. directory structure is 'DISK:<DIRECTORY.SUBDIRECTORY>'.  For MS-DOS
  68. programs, the main directory is 'PD1:<MSDOS>'.  In here there is a
  69. file called 'MSDOS.CRCLST', which is updated almost daily.  It
  70. contains a list of all files within the MS-DOS subdirectories, along
  71. with file size and CRC value.
  72.  
  73.     To get this list, first switch to that directory by saying 'cd
  74. pd1:<msdos>' (TOPS-20 is not case sensitive).  If you are prompted for
  75. another password just ignore the request.  When you get the 'ftp>'
  76. prompt back, you can then say 'get msdos.crclst'.  This will initiate
  77. the transfer, and after a few minutes it will be completed.  The
  78. beauty of Unix is that while you are transfering something big, you
  79. can put it in the background and do something else.
  80.  
  81.     Say you wanted to get ProComm Plus TD. According to the list, it is
  82. in PD1:<MSDOS.PROCOMM>.  So, you can enter 'cd pd1:<msdos.procomm>'.
  83. A 'dir' will show all the files in that directory.  (You may wish not
  84. to use too many 'dir' commands, as they are sometimes fairly slow).
  85.  
  86.     Now, you want the file 'pcplustd.arc'.  First, you must tell your
  87. host what kind of file it is.  On most Unix systems, 'binary' or 'set
  88. type binary' or 'set type I' will work.  However, as Simtel20 runs a
  89. different OS that has different word sizes (36 bits) you must specify
  90. 'tenex' or 'type L 8' to transfer properly.  You can then issue a 'get
  91. pcplustd.arc' command, and after a short while, you have ProComm Plus TD.
  92. To end your session, enter the 'bye' command.
  93.  
  94.     Unix is a little more familiar for most people with Internet access.
  95. For example, you might wish to get sources to the latest version of ZOO
  96. from uunet.uu.net.  First, you give the 'ftp uunet.uu.net' command (or
  97. ftp 192.48.96.2), giving 'anonymous' for the username, and your address
  98. as the password.  You can then use the 'dir' or 'ls -l' commands to scan
  99. the directories.  After some directory searching, you find it is located in
  100. comp.sources.unix/volume17/zoo2, showing that it was posted in
  101. comp.sources.unix, volume 17. Inside that directory, you find 10 parts,
  102. labelled part01.Z to part10.Z. As told by the .Z suffix, these files are
  103. compressed binary files. You must tell FTP to operate in binary mode, so
  104. type 'binary' or 'type I' to set it. You can then do a 'get' for each file.
  105. Now you have the original sources to Zoo 2.01.
  106.  
  107.     Different systems have different organizations for their files, and the
  108. above example is just the way I have it set up.  By 'poking' around other
  109. systems, you can learn how their files are set up, and zip around much
  110. faster.  Note, however, that FTP will not allow you outside the FTP 'root'
  111. directory, usually ~ftp on most systems.  So, poking about the entire system
  112. is not permitted.
  113.  
  114.     You now have a basic understanding of how to use FTP to get the things
  115. you want. I hope this has been of use. Questions and comments welcome.
  116. Other features of FTP can be found in the manual - please check there. My
  117. E-mail address is oneill@hawk.ulowell.edu.
  118.  
  119.     Messages regarding problems, complaints or suggestions for
  120. Simtel20 should be addressed to 'action@wsmr-simtel20.army.mil'.
  121.  
  122.  
  123. ==== <g FTP>                        10 links in glossary topic
  124. ==== <g BINARY>                      3 links in glossary topic
  125.