IV. Detailed Description of the Commands (Part 1)
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 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.