Please contact or Mt Xia for assistance with all your shell programming needs.
8. ADVANCED FEATURES OF FTP
This chapter will discuss some advanced features of the FTP server as implemented on the Multimax. The introduction of FTP in UNIX for Beginning Users gave an elementary introduction to some of the features. If you are not familiar with the basics, please refer to that manual. It is not the purpose to review those basics here. The FTP (Internet file transfer program) is the user interface to the DARPA File Transfer Protocol. This utility program will transfer files to and from a remote computer. In order for files to be transferred from the local computer to a remote computer, a connection must be established. This can be done from the FTP command line. The connection to the remote computer will remain active until it is terminated by the user. The remote computer with whom the connection is to be made can be specified on the FTP command. In this case, FTP will immediately try to establish a connection. If the remote computer is not specified, FTP will enter its command interpreter mode and wait for instructions; a prompt will be displayed. FTP does have a help feature, and all 58 commands can be listed. It will also give a terse description of each command. In addition, there are on-line manual pages which can be accessed by using the man command in UMAX.8.1 Initializing FTP on UMAX
The term, "local computer," will refer to the Multimax. The "remote computer" will refer to the other computer with which you are trying to send/receive files. For purposes of this course, we will be referring to the VAX minicomputer as the remote computer. Please be aware that these procedures will work for any computer connected to Ethernet and having an FTP server. FTP can be invoked on the local computer using the following syntax:
Command Format: ftp [-v] [-d] [-i] [-n] [-g] [host] -v = verbose on, forces ftp to show all responses from the remote server -d = enables debugging -i = turn off interactive prompting during multiple file transfers. -n = disables the "auto-login" feature -g = disable filename globbing host = the name of the remote computer |
Command Format: mget remote-files remote-files = remote computer wildcard specification or file1 file2 ... filen |
Command Format: macdef macro-name macro-name - the name of the macro |
Command Format: put local-file [remote-file] get remote-file [local-file] |
Command Format: nmap [inpattern outpattern] |
Command Format: cdup |
Command Format: delete remote-file remote-file name of the file to delete |
Command Format: mdelete [remote-files] remote-files names of the files to delete |
Command Format: mkdir directory-name directory-name the name of the directory to be created on the remote computer. |
Command Format: rmdir directory-name directory-name the name of the directory on the remote computer that will be removed. |