HP ARPA File Transfer Protocol User's Guide (36957-90159)

34 Chapter4
Using FTP
Transferring MPE/iX Files to the Remote Host
CAUTION
If the remote file name you specify already exists on the remote host, the
remote system may overwrite the existing remote file without warning.
File Naming
Note that other systems may support uppercase and lowercase file names. For example, if
you entered the following commands and file names when connected to a UNIX system,
the result would be two new remote files named RFILE and rfile.
ftp> PUT RFILE
ftp> PUT rfile
On MPE/iX, RFILE or rfile is the same file name.
Transferring Files to a Different Directory
To transfer a file to other than the remote working directory, you can change directories
using the CD command, or you can specify the directory name with the
remotefile
specified as in the following example (to a UNIX file system):
ftp> PUT myfile testdir/myremfile
200 PORT command okay.
150 Opening data connection for testdir/myremfile
226 Transfer complete.
nnn bytes sent in n.nn seconds: (n.nn Kbytes/sec)
Transferring Files from Other Groups
The lcd command will change directories and consequently the group. For example, you
could transfer a file named NSPROG1 from GROUP1 to a remote file named nsprog as follows:
ftp> PUT NSPROG1.GROUP1 nsprog
If the
remotefile
is not specified in this example, the remote file name would be:
NSPROG1.GROUP1
Transferring Multiple Files
To transfer a group of files to the remote system, use the FTP MPUT command.
For example, transfer all files in your account, beginning with the letter “C” to the remote
host. First verify that the files are all of one type (ASCII or binary) using the MPE/iX
LISTF command:
ftp> :LISTF C@,2
ACCOUNT = PUB GROUP = MYGROUP]
FILENAME CODE -----------LOGICAL RECORD-----------
SIZE TYP EOF LIMIT
CAT1 80B FA 850 10000