Skip to main content

10. BITFTP

10.1. What is BITFTP​

BITFTP, BITNET FTP Server, allows users of EARN, Bitnet and associated networks to access FTP sites on the Internet. The BITFTP server provides a mail interface between a user on the EARN/Bitnet network to FTP sites on the Internet. BITFTP handles this task by passing the commands specified in the mail message from the user to another server that actually makes the connection to the FTP sites. When the server finishes the interaction with the FTP site, or fails due to an error, a transcript of the result is sent back to the user, as well as the requested file(s), if any. The format of the files sent to the user can be defined within the mail message. BITFTP can deliver files in netdata and uuencode formats.

10.2. Who can use BITFTP​

BITFTP is currently available only to users on EARN, Bitnet and other regional NJE networks. BITFTP does not support multiple file requests via the mget command nor does it support sending files to FTP sites (the put command).

10.3. How to get to BITFTP​

There are BITFTP servers currently running at:

+---------------------------------------------------------------+
| |
| [email protected] or [email protected] Germany |
| [email protected] or [email protected] USA |
| |
+---------------------------------------------------------------+

Users on the EARN/Bitnet international network only may use the US server. Only users from EARN member countries may use the server in Germany. Servers at other locations are planned. BITFTP accepts requests via electronic mail, including IBM NOTE and PROFS-format messages, as well as by NJE file transfer.

10.4. Using BITFTP​

BITFTP implements a large subset of the FTP commands of the IBM's TCP/IP for VM, using the same syntax. This software is documented in the IBM manual TCP/IP for VM User's Guide. In the following, angle brackets (<>) indicate an optional parameter. Use the ftp command to specify which host to connect to. This command must be the first command in your mail file. You can also specify the file format that you wish BITFTP to use to deliver files to you.

+---------------------------------------------------------------+
| |
| ftp hostname <fileformat> |
| |
+---------------------------------------------------------------+

where: hostname is either the IP address or the domain name of the host to connect to, fileformat is the format in which BITFTP should deliver files to you. It can be either netdata or uuencode. Use the user command to tell the host the username and the password to be used for the FTP connection. Note that on many FTP sites, both username and password are case-sensitive.

+---------------------------------------------------------------+
| |
| user username password |
| |
+---------------------------------------------------------------+

where: username is the user-id to use for the FTP connection, password is the password for the username you specified. It can be omitted if you specified anonymous for the userid.

Use the  cd command to select  a particular directory  as current
directory.

+---------------------------------------------------------------+
| |
| cd directory-name |
| |
+---------------------------------------------------------------+

where: directory-name is the name of the directory to be selected. Use the dir command to display a list of the files in the current, or specified, directory. The file names, and depending on the site, the file size, file creation date and other information will be listed.

+---------------------------------------------------------------+
| |
| dir <pattern> |
| |
+---------------------------------------------------------------+

where: pattern is a pattern that defines which file names should be displayed. Many FTP sites are case-sensitive, thus care must be used with the pattern. The pattern may contain any number of characters, and the wildcard character "*" (asterisk) may be used to represent any characters. The ls command is similar to the dir command, except that with most FTP sites, it only displays the filenames, without any other information. The pattern specification is identical to dir.

+---------------------------------------------------------------+
| |
| ls <pattern> |
| |
+---------------------------------------------------------------+

Use the get command to obtain a file from the current host.

+---------------------------------------------------------------+
| |
| get foreignname <localname> |
| |
+---------------------------------------------------------------+

where: foreignname is the filename of the file, as stored at the FTP site. With many sites, the case of the filename must be respected.

localname
is an optional local filename. If you specify a localname, it must
be in the form: filename.filetype where neither part is longer
than eight characters.

Use the binary command to set the FTP transfer mode. If this option is set then no EBCDIC-ASCII translation will take place. This should be used for non-text files.

+---------------------------------------------------------------+
| |
| binary |
| |
+---------------------------------------------------------------+

Use the quit command to close the connection to the host, and to terminate the BITFTP session.

+---------------------------------------------------------------+
| |
| quit |
| |
+---------------------------------------------------------------+

10.5. Examples​

To get the file how.to.ftp.guide from the directory /pub/nic/network.service.guides at the anonymous FTP site nic.sura.net, and to get a listing of the files in that directory, you could send the following commands by e-mail to BITFTP: ftp nic.sura.net user anonymous cd pub/nic/network.service.guides get how.to.ftp.guide dir quit In response you will receive an e-mail containing the following lines (some lines have been removed for brevity): > ftp nic.sura.net > user anonymous >> OPEN NIC.SURA.NET >> USER anonymous > cd pub/nic/network.service.guides >> CD pub/nic/network.service.guides > get how.to.ftp.guide >>>> "how.to.ftp.guide" sent as "HOWTO FTPGUIDE". > dir

total 60
-rw-rw-r-- 1 mtaranto 120 344 Apr 14 1992 README
-rw-rw-r-- 1 mtaranto 120 12759 Oct 30 1992 how.to.email.guide
-rw-rw-r-- 1 mtaranto 120 6327 Mar 24 13:28 how.to.ftp.guide
-rw-rw-r-- 1 root 120 2818 Mar 4 1992 how.to.telnet.guide
-rw-rw-r-- 1 mtaranto 120 6136 Oct 30 1992 how.to.use.vi.guide
-rw-r--r-- 1 1086 120 0 Aug 18 21:23 plane.

The above directory listing is typical of the format of Unix FTP sites. There is information on file permissions and ownership as well as the size of the file in bytes, the time and date of its last change, and the file name. You could request the first two files by once again sending mail to BITFTP with the following commands: ftp nic.sura.net user anonymous cd pub/nic/network.service.guides get README get how.to.email.guide quit

10.6. Learning more about BITFTP​

A four-page instruction to the BITFTP service can be obtained by sending a help command in the body of a mail message to either BITFTP server. Additional information on BITFTP may be obtained from EARN ([email protected] or [email protected]). More information about TCP/IP and FTP in general can be obtained from a wide variety of sources, such as the documents mentioned in the example above.