HP 3000 Manuals

Ch 5. Using the FTP Server [ HP ARPA File Transfer Protocol User's Guide ] MPE/iX 5.0 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 XL
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 XL server

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

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. 

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] [localfile]

(LIST)                                      Writes the requested remote 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 ] (RETR)         Transfers the remote file 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 ] [localfile ] (NLST)   Displays the contents of a 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 (NLST,DELE)             The remote system expands the wildcard
                                            characters in remotefiles and deletes the
                                            set of files on the remote MPE XL host. 

MGET  remotefiles (NLST,RETR)               The remote system expands the wildcard
                                            characters in remotefiles and retrieves the
                                            set of files from the remote host .

MODE [STREAM] (MODE)                        Sets the FTP file transfer mode to the
                                            specified mode.  The only supported mode is
                                            STREAM. 

          Table 5-0.  (cont.) 

User command ( SERVER command)              DESCRIPTION

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 XL system . 

OPEN remotehostname                         Opens a connection to the remote host
                                            specified.

PUT localfile [remotefile ][; buildparms]   Transfers a local file to a file on the
(STOR)                                      remote MPE XL system.  Build parameters may
                                            be used to change how the file is stored on
                                            MPE XL. If the remote file name is not
                                            specified, the file is saved with the local
                                            file nameprovided the local file name is a
                                            valid name on the remote MPE XL system.   

PWD (PWD)                                   Displays the name of the remote working
                                            directory on the terminal.  On MPE XL, this
                                            corresponds to the current session, logon
                                            account and group.  For example:
                                            "SESSNAME,USER.ACCT,GROUP". 

QUIT (QUIT)                                 Closes the connection to the remote system
                                            and exits from FTP. 

REMOTEHELP [ servercommand ](HELP)          Displays the remote host (MPE XL) 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 ( RNFR,RNTO)      Renames a remote file. 

          Table 5-0.  (cont.) 

STRUCT [FILE] (STRU)                        Sets the FTP file transfer structure to the
                                            specified structure.  The only supported
                                            structure is FILE. 

TYPE [ transfertype ] (TYPE)                Sets the FTP file transfer type to the
                                            specified type.  The supported transfer
                                            types are ASCII and BINARY. 

USER sess,user.acct,group(USER)             Used to enter a logon name in 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 Documentation