HP 3000 Manuals

Ch 5. Using the FTP Server [ HP ARPA File Transfer Protocol User's Guide ] MPE/iX 5.0 Express III Documentation


HP ARPA File Transfer Protocol User's Guide

Chapter 5  Using the FTP Server 

This chapter provides information for remote users accessing the MPE/iX
FTP server and is organized as follows: 

   *   A list of user commands and the corresponding FTP server commands
       supported.

   *   Sample session for a remote user accessing the FTP MPE/iX server.

   *   More information about FTP and MPE/iX for the remote user.

                                 Table 5-1.   

-------------------------------------------------------------------
|                                |                                |
| User command (Server command)  | DESCRIPTION                    |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| ASCII (TYPE A)                 | Sets the FTP file transfer     |
|                                | type to ASCII. This is the     |
|                                | default when you first enter   |
|                                | FTP.                           |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| BINARY (TYPE I)                | Sets the FTP file transfer     |
|                                | type to binary.                |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| BYTESTREAM (BYTE)              | Sets the FTP file transfer     |
|                                | type to bytestream.            |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| CD remotedirectory(CWD | XCWD) | Changes the working directory  |
|                                | on the remote host to the      |
|                                | directory specified.           |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| CLOSE (QUIT)                   | Closes the remote connection   |
|                                | but remains in the FTP         |
|                                | program.                       |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| DELETE remotefilename(DELE)    | Deletes the remote file        |
|                                | specified.  A directory path   |
|                                | may be included with the       |
|                                | remotefilename.                |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| DIR [remotedirectory]          | Writes the requested remote    |
| [localfile] (LIST)             | directory listing to the       |
|                                | terminal, or to a local file   |
|                                | if specified.  If              |
|                                | remotedirectory is not         |
|                                | included, the current remote   |
|                                | working directory contents are |
|                                | listed.                        |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| FORM [NONPRINT] (FORM)         | Sets the FTP file transfer     |
|                                | form to the specified format.  |
|                                | The only supported form is     |
|                                | NONPRINT.                      |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| GET remotefile [localfile]     | Transfers the remote file      |
| (RETR)                         | specified to a local file.  If |
|                                | a local file name is not       |
|                                | specified, the file is saved   |
|                                | with the same name as the      |
|                                | remote file name (assuming a   |
|                                | legal file name).              |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| LS [remotedirectory]           | Displays the contents of a     |
| [localfile] (NLST)             | remote directory, one file per |
|                                | line.  If a localfile name is  |
|                                | specified, the listing will be |
|                                | saved to the file specified.   |
|                                | If remotedirectory is not      |
|                                | included, the current remote   |
|                                | working directory contents are |
|                                | listed.                        |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MDELETE remotefiles            | The remote system expands the  |
| (NLST,DELE)                    | wildcard characters in         |
|                                | remotefiles and deletes the    |
|                                | set of files on the remote     |
|                                | MPE/iX host.                   |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MGET remotefiles (NLST,RETR)   | The remote system expands the  |
|                                | wildcard characters in         |
|                                | remotefiles and retrieves the  |
|                                | set of files from the remote   |
|                                | host.                          |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MKDIR remotedirectory (MKD |   | Creates a directory on the     |
| XMKD)                          | remote machine.                |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MODE [STREAM] (MODE)           | Sets the FTP file transfer     |
|                                | mode to the specified mode.    |
|                                | The only supported mode is     |
|                                | STREAM.                        |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MODTIME remotefile (MDTM)      | Returns the last modification  |
|                                | time and date of the remote    |
|                                | file.                          |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| MPUT localfiles (NLST,STOR)    | The local system expands the   |
|                                | wildcard characters in         |
|                                | localfiles and transfers the   |
|                                | set of files from the local    |
|                                | host to the remote MPE/iX      |
|                                | system.                        |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| OPEN remotehostname            | Opens a connection to the      |
|                                | remote host specified.         |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| PUT localfile [remotefile]     | Transfers a local file to a    |
| [;buildparms] (STOR)           | file on the remote MPE/iX      |
|                                | system.  Build parameters may  |
|                                | be used to change how the file |
|                                | is stored on MPE/iX. If the    |
|                                | remote file name is not        |
|                                | specified, the file is saved   |
|                                | with the local file name       |
|                                | provided the local file name   |
|                                | is a valid name on the remote  |
|                                | MPE/iX system.                 |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| PWD (PWD)                      | Displays the name of the       |
|                                | remote working directory on    |
|                                | the terminal.  On MPE/iX, the  |
|                                | session information is         |
|                                | returned as well.              |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| QUIT (QUIT)                    | Closes the connection to the   |
|                                | remote system and exits from   |
|                                | FTP.                           |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| REMOTEHELP [servercommand]     | Displays the remote host       |
| (HELP)                         | (MPE/iX) FTP server commands   |
|                                | supported.  If a server        |
|                                | command is specified with the  |
|                                | REMOTEHELP command, a brief    |
|                                | description of the command is  |
|                                | displayed.                     |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| RENAME remotefile newname      | Renames a remote file.         |
| (RNFR,RNTO)                    |                                |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| RMDIR remotedirectory (RMD |   | Deletes a directory from the   |
| XRMD)                          | remote machine.                |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| SITE [MPE/iX | HELP] (SITE)    | Remote system returns a help   |
|                                | line or sets an internal flag  |
|                                | indicating that the local      |
|                                | system is an MPE/iX machine.   |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| SIZE remotefile (SIZE)         | Returns the size in bytes of   |
|                                | the remote file.               |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| STRUCT [FILE] (STRU)           | Sets the FTP file transfer     |
|                                | structure to the specified     |
|                                | structure.  The only supported |
|                                | structure is FILE.             |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| SYSTEM (SYST)                  | Displays the remote system     |
|                                | type.                          |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| TYPE [transfertype] (TYPE)     | Sets the FTP file transfer     |
|                                | type to the specified type.    |
|                                | The supported transfer types   |
|                                | are ASCII, BINARY, and         |
|                                | BYTESTREAM as of 4.5.          |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
| USER sess,user.acct,group      | Used to enter a logon name in  |
| (USER)                         | order to establish a session   |
|                                | on the remote host.  A         |
|                                | connection to the remote host  |
|                                | must already have been         |
|                                | established using OPEN.        |
|                                | Passwords may be included in   |
|                                | the logon string as follows:   |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
|                                | sess,user/userpass.acct/       |
|                                | acctpass,group/grppass         |
|                                |                                |
-------------------------------------------------------------------
|                                |                                |
|                                | Note:  Passwords can only be   |
|                                | entered once.  If you enter    |
|                                | passwords with the logon       |
|                                | string, do not re-enter them   |
|                                | at the password prompt, just   |
|                                | press the [Return] key.  If    |
|                                | you enter passwords as part of |
|                                | the logon string, they are     |
|                                | displayed in the message text  |
|                                | of the password prompt.        |
|                                |                                |
-------------------------------------------------------------------



MPE/iX 5.0 Express III Documentation