1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557
|
<pre>Work Information Center # 12404 G. Hicks
Request for Comments # 412 Utah
27-Nov-72
User FTP Documentation
The attached document is the HELP file for the Utah-10
implementation of the User FTP Process. This is what the user has
typed on his console when he types 'HELP<cr>', and as such is the only
documention produced to date.
<span class="grey"> [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
FTP User Documentation
November 27, 1972
<span class="h2"><a class="selflink" id="appendix-I" href="#appendix-I">I</a>. Control Characters</span>
There are several control characters that have meaning to the FTP
Process. First, the abort character is <control-z> (SUB), next for
editing, only <control-r>, <control-a>, <control-h>, <control-v>,
<control-w>, <alt-mode>, <eol>, <space>, <control-x> and <rub-out> have
any meaning, <control-a> (SOH) and <control-h> (BS) are the character
delete keys. <control-w> is the word delete character, Note: When dowing
the ' funktion, this character will delete the entire line typed.
<control-v> says take the next character literally. <alt-mode> (ESC)
terminates the command giving helpful noise words, <eol> and <space> are
terminators also. These last two will give no command completion or
noise words. All three echo as a space however. <control-x> (CAN) and
<rub-out> (DEL) are the command abort characters. <control-r> (DC2) will
retype the line as the command interpreter sees it. When using the ? as
a prompter, for initial commands, it will type-out all commands that
begin with that particular character string. If it is typed in a sub-
command field, it will type out the prompt message only if it is the
first character typed. At all other times, it will be accepted as part
of the typed string.
II. General Information
The FTP user process is designed to make transferring files from
one host on the ARPANET to another much easier than it has been up until
now. To this end, the command language was designed to be as natural as
possible.
The command interpreter is, of course, part of this idea.
Therefore, to help the user as much as possible, there are several ways
to find out what is expected in the form of commands, file-names, user-
names, etc. When the user has typed nothing, typing a ? will cause the
interpreter to type out all the commands that are available to the user.
If the user has typed anything at all, then it will respond with all
commands that begin with the particular character string.
So that the command language was as easy to learn as possible, the
command interpreter will 'see' nothing that is not part of a legal
command. If the user types anything that is not expected, the character
is not echoed and a bell is echoed instead.
<span class="grey"> [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
III. Brief Command Listing
The commands that are expected and their syntax are listed below.
NOTE: UPPER and lower case letters are identical.
<host-name>
D<decimal host number>
<octal host number>
;<any string> (useful for comments to a person that is
linked to you)
MODE <mode name>
RETREIVE <remote file> (to) <local file>
GET <remote file> (to) <local file>
SEND <local file> (to) <remote file>
STORE <local file> (to) <remote file>
APPEND <local file> (to) <remote file>
RENAME <remote file> (to be) <new remote file name>
DELETE <remote file>
BYE
COPY <direction descriptor> <file group> (to) <file group>
(see detailed description below)
LOGOUT
DDT
LIST <file group> (to file) <local file name>
SOCKET (NOT IMPLEMENTED YET)
ALLOCATE <decimal number of bytes>
QUIT
foreign host)
HOST <any valid ARPANET host name or number>
USER <remote user name>
PASSWORD <password for remote user's name>
ACCOUNT <string or number for remote user's name>
STATUS (see description of status command below)
LOGIN <user name> <password> <optional account> <to host>
BYTE <decimal byte size>
TYPE <type descriptor>
STRUCTURE <structure descriptor>
TENEX
ASCII
VERBOSE
<span class="grey"> [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
IV. Detailed Description of the Commands
The commands and their syntax are described in greater detail
blow. The words in parenthesis are noise words. NOTE: upper and
lower case are identical. Unless otherwise noted in the command
description, all commands described are implemented.
<host name> or <host number>
Performs the ICP to the indicated host with explanatory remarks if
the ICP is not possible.
MODE <mode descriptor>
Sets the mode of the data transfer connection according to the
following sub-commandos:
STREAM: bit stream, end of file is indicated by the data connection
closing.
BLOCK: formats (or expects formatted) data into blocks.
TEXT: Sends or retreives text. Forces TYPE ASCII and BYTE 8. This
command sends the appropiate commands to the foreign host, then sends
the data using the TELNET codes for EOR and EOF as per the FTP
Protocol.
HASP: compress data.
NOTE: Of the above sub-commands, only MODE STREAM and MODE TEXT are
implemented at present.
RETREIVE (file) <remote file> (to file) <local file name>
Sends the retr command to the remote server, sets up the data
connection according to any previous MODE, TYPE, BYTE commands. Puts
the data coming on the the data connection into the local file
specified.
GET (file) <remote file name> (to file) <local file name>
See description of RETREIVE.
STORE (local file) <file name> (onto file) <remote file>
Accepts a local file name, does the formatting according to any
previous BYTE, TYPE, MODE commands and sends it to the foreign host.
SEND (local file) <file name> (onto file) <remote file>
See description of STORE.
APPEND (local file) <file name> (to remote file) <remote file>
Does the same as a store except that the file is appended to the
<span class="grey"> [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
remote file rather that just writing over the file.
RENAME (existing file) <file name> (to be) <new file name>
Accepts the name of n old remote file and asks for a new file name,
sends the appropiate commands and names to the foreign host causing
the old file name to be replaced by the new file name.
DELETE (file) <file name>
This command causes the remote file to be marked for deletion. It
does require that the command be confirmed twice.
BYE
Takes no arguments. Causes the server to terminate the current
session with the user. The program will return to the EXEC MODE when
the command has been acknowledged by the remote server.
COPY
This command does a variety of things. First. it allows the user do
describe a file group. EG: *.mac, *.sav, etc. The *'s may be for
foreign files or local files according to the following sub-commands:
REMOTE (remote file group) <remote file grouping>:
Causes the user FTP to ask the server for the file in <remote file
grouping>. Then asks the user to specify where each file is to go. A
typical sequence might look like the following:
!copy remote (remote file group) ftp.*
Please be patient. Getting remote file names.
Got them.
!copy (file) <HICKS>FTP.MAC;| (to file) ftp.mac [New file]
[Messages and etc. follow with the above line being
repeated for each file in the remote file group.]
LOCAL (local file grouping) <local file group>:
Causes the user FTP to accept the file group specified, and send the
file names to the server leaving off the <directory name> and version
number of the local file. The user may not specify *'d devices of *'d
directorys. A line for this might look like the following:
!copy local (local file group) ftp.*;*
[Confirm]
Next, if the user does not specify any *'s for either the remote file
or the local file, this command is exactly like the RETREIVE or STORE
command described earlier.
LOGOUT
Takes no arguments. See description of BYE command for more details.
<span class="grey"> [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
RESET
Takes no arguments. Causes the user process to close all connections
(if necessary), all files (if necessary), and reset the programs
parameters to their defaults.
DDT
If DDT is loaded, just starts DDT. If DDT is not loaded, it will load
DDT and then start it at its initial start-up location. This command
will casue an abnormal interrupt if DDT is not found.
LIST (file group) <remote file group> (to file) <local file>
Esentially causes the remote server to do a directory command. The
default is *.* and since the listing will come on the data connection,
the user must specify a local file. A sample line might look like the
following: !list (file group) *.* (going to file) tty: [ok]
SOCKET <socket descriptor>
Will accept a socket descriptor for the data to go to or come from. At
present it is NOT IMPLEMENTED because we have not decided on the
format of the command to the server.
ALLOCATE <decimal number of bytes>
Accepts as its argument a decimal number of bytes (of the specified
size) telling the server how many bytes of storage to reserve for the
next store of append.
QUIT
Takes no arguments. Returns the console to the EXEC. The program may
be continued with no harm done.
This command allows the user to send arbitrary strings to the remote
server. At present, when talking to a TENEX site, it is only useful
for doing the 'MAIL' command. Other sites may have help commands of
whatever.
HOST <ARPANET host name of number>
Allows the user to specify an ARPANET host without actually connecting
to the host. This specified host will be the ont that is connected to
(or the attempt will be made anyway) when the next 'immediate' command
is executed. EG: LOGIN, RETREIVE, STORE, LIST, etc.
USER (name is) <remote user's name>
Sets the user name for the remote system. Useful for systems that
require no password for the specified name. Does nothing until an
user must be 'logged into' the remote system. The programm knows this
and so will not let the user execute any commands (RETREIVE, STORE,
APPEND, LIST, STATUS, RENAME, DELETE) until he has at least specified
a remote user name. The LOGIN command does this as does this command.
<span class="grey"> [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
STATUS (of the) <sub-cmd> (at host) <ARPANET host>
Accepts as its argument one of the following sub-commands:
SERVICE (at host) <ARPANET host name or number>: Attempts to
perform the ICP to the specified host. Does not disturb any existing
connections.
<ARPANET host name or number>: See description of STATUS SERVICE
above.
STATUS (of file) <remote file group>: Similar to the LIST
command described above except that the listing does not gone back on
the data connection but on the TELNET connection. See LIST command for
more details.
<COMMAND-TERMINATOR>: Just sneds the STAT command.
Typically, is good for finding out where your are and perhaps who you
are.
PASSWORD (is) <passowrd for remote user's name>
Sets the password for the remote user's name. It is NOT echoed and
does nothing until the next 'immediate' command is executed.
ACCOUNT (is) <account number or string>
Accepts a string of number that can be charged for any activity the
user specifies. EG: STORE, RETREIVE or APPEND. Useful only for systems
that require this information of course. Also does nothing until the
next immediate command is executed.
LOGIN <user name> <password> <optional account>
the format of this command is identical to the TENEX login command. It
accepts a user name, password, and an optional account number. If no
host has been specified, it will ask for the host to be connected to.
This command will cause the ICP to take place if necessary.
BYTE (size is) <decimal byte size>
This command sets the byte size for the data connection. The default
byte size is 8 bytes.
Type (is) <type descriptor>
Takes as its argument one of the following subcommands:
TENEX: Shorthand that sets TYPE IMAGE and BYTE 36.
EBCDIC: Says that the data will be Ebcdic.
PRINT: Says that the data is an Ascii print file with ASA vertical
format controls.
LOCAL: Forces the user and server FTP to accept whatever
byte size the user has specified. For the present, this type is
treated the same as for IMAGE TYPE.
IMAGE: Does the same as LOCAL. Just forces the user and server FTP to
accept the specified byte size without doing any translation as is
done for ASCII type. For most efficient usage of this command, the
<span class="grey"> [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
matching byte size should be BYTE 36 when using TENEX sites as
servers.
ASCII: Sets TYPE ASCII and 8 bit bytes. Useful for text files.
NOTE: Of the above sub-commands, only PRINT and EBCDIC are not
implemented yet.
STRUCTURE (is) <file structure descriptor>
Accepts as its argument one of the following sub-commands:
REDORD: Says the data on the data connection has record
structure information contained in it. NOTE: Since TENEX NOT support
record structured files per se, this mode only useful for sending text
files to or retreiving text files from non-TENEX sites. The <EOL> in
these files is converted to the TELNET EOR code for transmission and
EOR to <EOL> etc. for reception.
File: Says the data stream has no record structure information in it.
TENEX
See description under TYPE TENEX.
ASCII
See description under TYPE ASCII.
VERBOSE
This command sets the command completion/no completion flag. The
program assumes the NO VERBOSE mode and thus does not complete
commands when <space> or <eol> is used as a command terminator It also
causes the noise words to be typed if in the verbose mode.
<span class="grey"> [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
<span class="h2"><a class="selflink" id="appendix-V" href="#appendix-V">V</a>. Sample Session using the FTP</span>
The following scenario shows some uses of the FTP.
Everything that the user types is underlined.
UTAH-TENEX 1.29.03 EXEC 1.38
LOGIN (USER) HICKS (PASSOWRD) (ACCOUNT #) 1200
JOB 24 ON TTY2 11-NOV-72 1:51
TERMINAL (TYPE IS) 4
ftp
FTP User Process 1.10 5-NOV-72. Type Help<cr> for help.
!login (user) network (password) (account) 4 (to host) case-10
CONNECTION IS OPEN TO CASE-10.
< CASE-10 FTP Server 1.14.0 - at SAT 11-NOV-72 2:00-EST
!tenex ? confirm with carriage return
tenex
!copy remote (remote group) ftp.*
Please be patient. Getting remote file-names.
Got them.
!copy (file) <NETWORK>FTP.MAC:32 (no file) ftp.mac [new file]
< IMAGE retreive of <NETWORK>FTP.MAC;32 startet.
< Transfer completed.
!copy (file) <NETWORK>FTP.SAV;5 (fo file) FTP.SAV;5 [new version]
< IMAGE retreive of <NETWORK>FTP.SAV;5 started.
< Transfer completed.
!copy (file) <NETWORK>FTP.REL;1 (to file) xxx
!copy (file) <NETWORK>FTP.HELP;5 (to file) ftp.help [New version]
copy (file) <NETWORK>FTP.HELP;5 (to file) FTP.HELP;1
< IMAGE retreive of <NETWORK>FTP.HELP;5 started.
< Transfer completed.
Done...
!usc-isi
Closing connections to CASE-10.
CONNECTION IS OPEN TO USC-ISI.
< USC-ISI FTP Server 1.14.0 - at SAT 11-NOV-72 2:15-PST
!log
user hicks
(password)
(account) ? account number or string for remote user's name
log
(user) hicks
(password)
(account) |
!send (local file) ftp.sav;5 (to remote file) ftp.sav
< STORE of <HICKS>FTP.SAV;P777752;a|, IMAGE type, started.
< Transfer completed.
!cp r acs.mac (to local file) acs.mac [new file]
< IMAGE Retreive of <HICKS>ACS.MAC;3 started.
<span class="grey"> [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey">User FTP Documentation Detailed Command Listing</span>
< Transfer completed.
!copy 1 ? Local file group, *'s ok - TENEX sites only,
copy 1 ftp.*
[Confirm]
< Store of <HICKS>FTP.MAC;1;P777752;A1, IMAGE type, Started.
< Transfer completed.
< Store of <HICKS>FTP.SAV;2;P777753;A1, IMAGE type, Started.
< Transfer completed.
< copy of <HICKS>FTP.HELP;1;P777752;A1 IMAGE type, Started,
< Transfer completed.
!bye
!< BYE command recieved.
< Therefore connection terminated.
logout
[logout message go here]
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Gottfried Janik 6/97 ]
[Page 10]
</pre>
|