HP ARPA File Transfer Protocol User's Guide (36957-90159)
42 Chapter4
Using FTP
Using FTP Commands in UDCs and Programs
Listing the Remote FTP Server Commands
The REMOTEHELP command displays the remote host supported server commands. A
display similar to the following appears, (depending on the supported server commands).
ftp> REMOTEHELP
Entering REMOTEHELP
command
, where
command
is a valid remote FTP server command,
provides you with a brief description of the server command. For example:
ftp> REMOTEHELP USER
214 Syntax: USER username
FTP server commands may not have the same name as the user commands.
Using FTP Commands in UDCs and Programs
You can use FTP commands in User Defined Commands (UDC), command files and
programs to help you perform tasks such as:
• Automating the connection and logon process
• Transferring multiple files
• Creating batch jobs
Using EXITONERROR
The MPE/iX FTP command EXITONERROR allows you to turn on or off the capability to exit
an FTP session if an error occurs. The last error and message are saved in CI variables. To
show the errors, enter the following at the MPE/iX colon prompt:
:SHOWVAR FTP@
In the following example, EXITONERROR is activated. The second GET command generates
an error because the file does not exist:
ftp> EXITONERROR
ExitOnError mode on. (FTPINFO 33)
ftp> GET filex filey
200 PORT command okay.
150 Opening data connection for filey (123.50.42.32,50897) (320 bytes).
214-HP ARPA FTP SERVER recognizes the following commands (*-unimplemented):
USER
PASS
ACCT*
SMNT*
REIN*
QUIT
PORT
PASV*
TYPE
STRU
MODE
RETR
STOR
APPE
MLFL*
MAIL*
MSND*
MSOM*
MSAM*
MRSQ*
MRCP*
ALLO*
REST*
RNFR
RNTO
ABOR*
DELE
CWD
XCWD
LIST
NLST
SITE
SYST
STAT
HELP
NOOP
MKD
XMKD
RMD
XRMD
PWD
XPWD
MKD
XMKD
RMD
XRMD
PWD
XPWD
214 Refer to FTPDOC.ARPA.SYS for more FTP Server information.