rfc1068.txt
来自「中、英文RFC文档大全打包下载完全版 .」· 文本 代码 · 共 1,515 行 · 第 1/4 页
TXT
1,515 行
A.1 User Interface Program The BFTP user interface program "bftp" may be run directly via a UNIX shell. Once the program has been started, the prompt "BFTP>" will appear and commands may be entered. These commands are described in detail in Appendix B. A.2 Tool-Style User Interface Program The BFTP user interface program "bftptool" may be started from a shell window in the SunView environment on a Sun workstation. The BFTP commands may be selected via the left mouse button. The various file transfer parameters appear in a form-style interface; defaults and multiple-choice style parameter values can be filled in via menus. An advantage of this form-style interface program is that it is possible to view all of the file transfer parameters simultaneously, providing the user with a sense for which parameter values might be mutually exclusive. Help information can be displayed in a text subwindow by positioning the on-screen mouse pointer over a command or a parameter, and clicking the center mouse button. (No standard mechanism for displaying help information is currently included inDeSchon & Braden [Page 14]RFC 1068 August 1988 the SunView package.) The commands used in the "bftptool" are for the most part very similar to the commands described in Appendix B. Request submittal and the execution of the FTC daemon are identical for the "bftp" and the "bftptool" interface programs. A.3 Internet Server The Internet server program "bftpd" can be invoked by opening a Telnet connection to a well-known port, and does not require login. The "bftpd" program runs under "inetd", the standard BSD4.x well-known port dispatcher. When a SYN arrives for the BFTP well-known port, "bftpd" opens the TCP connection and performs Telnet negotiations. It then passes control to the user interface "bftp" which allows the user to enter file transfer requests. A.4 BFTP Server Daemon The BFTP file transfer control daemon program is named "fts" (for "File Transfer Service"). This module contains code to actually cause a single file transfer operation using the FTP server-server model as shown in Figures 1 and 2. It is invoked with the command "fts <request-file>". The <request-file> contains the necessary parameters for the file transfer, in ASCII format, separated by linefeeds. Such a request file may be created by the user interface program, "bftp". As a byproduct of the development of BFTP, "fts" represents a server-server FTP driver that can be run independent of the "bftp" program. Parameters used in the file transfer are read from a request file, which is created and accessed via library routines which can be shared between modules. This could be used to perform FTP's under program control.DeSchon & Braden [Page 15]RFC 1068 August 1988Appendix B: BFTP Command Summary B.1 Special Editing Characters In the "bftp" program, the special editing characters for command words, subcommands, and parameter fields are as follows: <return> Accept current command/field. <escape> Complete current command/field, or display default. <space> Complete and delimit current command. <delete> Erase last character. control-L Refresh screen. control-R Refresh line. control-U Erase line. control-W Erase current token. ? List legal options. B.2 BFTP Commands The remainder of Appendix B consists of a list of the BFTP commands. Each command should be followed by a carriage-return. In the description of the syntax for each command, square brackets "[]" are used to indicate a ssubcommand, or a list of possible subcommands, which are separated by the "|" character. Angle brackets "<>" are used to indicate a description of a parameter where the choices would be too numerous to list, for example "<host name/number>". B.2.1 Clear Command Return all parameters to their default values. clear B.2.2 Destination Commands Set the destination directory. ddir <directory name> Set the destination file name. dfile <file name> Set the destination host, user, and password. dhost <host name/number> <login> <password>DeSchon & Braden [Page 16]RFC 1068 August 1988 B.2.3 Explain Command Display a short explanation of how to use BFTP. explain B.2.4 Find Command Find and display a previous request. find BFTP will prompt for the request id, which is printed when the request is first submitted. An example of a request id is "bftp583101774". BFTP also prompts for the request keyword, which was determined by the user when the request was first submitted. If no keyword was specified, a <CR> should be typed. If no request id is entered, BFTP will display all requests which contain a matching keyword. RequestID (optional): <bftp-request-id> RequestKeyword: <keyword> After BFTP has displayed a summary of a matching request, it asks whether the request is to be changed, or canceled. Do you wish to change this request? [yes | no] Do you wish to cancel this request? [yes | no] If the user indicates that the request is to be changed, BFTP will read in the parameters and cancel the existing request. At this point the user may make any desired changes and use the "submit" command to requeue the request. At this point a new request id will be assigned and displayed.DeSchon & Braden [Page 17]RFC 1068 August 1988 Although this may happen extremely rarely, if at all, it is possible that a system crash (or the interruption of the BFTP program) at a particularly inopportune moment may leave a request which is not queued. When the "find" command locates such a request, it displays the warning: Your request is NOT currently queued. If this happens, the request may be read in and resubmitted using the following procedure: Your request is NOT currently queued. Do you wish to change this request? yes (BFTP displays the parameters that have been read in.) Previous request canceled. Use the 'submit' command to submit a new request. B.2.5 Help Command Print local help information. help help <command> B.2.6 Quit Command Clear parameters and exit the BFTP program. quit B.2.7 Prompt Command Prompt for commonly-used parameters. promptDeSchon & Braden [Page 18]RFC 1068 August 1988 The following are the parameters that BFTP prompts for: copy/move/delete: [copy | move | delete] ascii/ebcdic/image/local: [ascii|ebcdic] [nonprint|telnet|carriage-control] or [image] or [local] <byte size> (see "set type" for additional information) Source -- Host: <host name/number> User: <login> Password: <password> Dir: <directory including a delimiter, e.g., "/" or ">"> (either an absolute path, or relative to the login) File: <file name> Destination -- Host: <host name/number> User: <login> Password: <password> Dir: <directory> File: <file name> Once the prompting has been completed, the current values of all parameters will be displayed. Parameters not mentioned in the prompting will be initialized with default values, and may be changed via the "set" commands.DeSchon & Braden [Page 19]RFC 1068 August 1988 B.2.8 Request Commands The request commands enable the user to save a set of BFTP parameters in a "request-file" for future use. Subcommands are provided to to list all available request-files, or to read, write, or delete a request-file. All request-files are stored in the user's home directory. Therefore, this facility is not available when the user is accessing BFTP by telneting to port 152. Delete request file "bftp-save.name". request delete <name> List all bftp-save files. request list Read a request file in as the current request. request load <name> Save the current request in a file named "bftp-save.name". request store <name> B.2.9 Set Commands The "set" commands have complex subcommand structures and are used to set many of the less commonly used FTP parameters. The subcommands of "set" are as follows: Set the account for the source/destination login. set account [source | destination] <account string> Set to true to append to destination file. set append [true | false] The source file will be copied to the destination file name. set copy The source file will be deleted after the file has been moved or copied. set deleteDeSchon & Braden [Page 20]RFC 1068 August 1988 Set the mailbox to which the results will be returned. The mailbox should be in standard internet format, for example: "deschon@isi.edu". set mailbox <mailbox string> Set the FTP transfer mode. set mode [stream | block | compress] The source file will be deleted after it has been copied.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?