Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
256 Chapter 10
Technical Articles
FTP Enhancements
Example
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> get TESTFILE
200 PORT command successful.
150 Opening BINARY mode data connection for TESTFILE (145915 bytes)
###############################################################
###############################################################
########
226 Transfer complete
145915 bytes received in 0.32 seconds (438.45 Kbytes/sec)
REPLACE Option
This FTP/iX client controlled option allows the user to override the
default file placement strategy of FTP/iX (unconditional replacement of
the target file).
Executing the client REPLACE command will toggle the current state
(on or off). If the REPLACE option state, displayed by the REPLACE
command is on, FTP/iX will unconditionally replace the specified target
file. If the transfer state is set to off and a target file with the specified
name exists on the target system, the FTP/iX client will prompt the
user with a question (asking if it is okay to continue with the requested
transfer). Otherwise, if the target file doesn't exist, FTP/iX will create
the target file and continue with the transfer.
The user also has control over the REPLACE option by externally
setting the environment variable FTPREPLACE to the desired state
prior to entering the FTP/iX subsystem TRUE - on; FALSE - off). The
default state for this option is TRUE (on).
Example
Using the REPLACE Option with the GET Command:
ftp>get abc def
200 PORT command ok.
150 File: DEF;REC=-80,1,F,ASCII;DISC=204800,8 opened; data connection
will be opened
226 Transfer complete.
ftp>REPLACE
REPLACE option set to off (FTPINFO 99).
ftp>get abc def
File def exists! Do you want to replace it?>y
200 PORT command ok.
150 File: DEF;REC=-80,1,F,ASCII;DISC=204800,8 opened; data connect
opened
ftp>get abc def
File def exists! Do you want to replace it?>n
New target file name: wxy
150 File: WXY;REC=-80,1,F,ASCII;DISC=204800,8 opened; data connect
opened
226 Transfer complete.
MOVE Option
This FTP/iX user controlled option allows the user to selectively specify
on the GET, PUT, MGET, or MPUT commands whether to delete the
source file after confirmation of a successful file transfer to the target