HP ARPA File Transfer Protocol User's Guide (36957-90159)
38 Chapter4
Using FTP
Renaming Remote Files
Transferring Multiple Files
To transfer a group of files from the remote system to your MPE/iX system, use the MGET
command.
For example, transfer a group of binary files beginning with the letter “B” to your MPE/iX
system. First verify the files to be transferred:
ftp> DIR
200 PORT command okay.
150 Opening data connection for /bin/ls -l (123.50.42.32,50895) (0 bytes).
total 33
drwxrwxrwx 1 myname guest 10 Feb 13 18:44 bprog1
-rw-rw-rw- 1 myname guest 100 Feb 12 18:42 bprog2
-rw-rw-rw- 1 myname guest 100 Feb 12 18:42 bprog3
-rw-rw-rw- 1 myname guest 110 Feb 13 18:43 bprog4
226 Transfer complete
nnn bytes received in n.nn seconds (n.nn Kbytes/sec)
Transfer this group of binary files with interactive prompting off:
ftp> BINARY
200 Type set to 1.
ftp> MGET b*
200 PORT command okay.
Opening data connection for bprog1 (123.50.42.32,56077) (nnn bytes).
226 Transfer complete.
nn bytes received in n.nn seconds (n.nn Kbytes/sec)
200 PORT command okay.
Opening data connection for bprog2 (123.50.42.32,56077) (nnn bytes).
226 Transfer complete.
nn bytes received in n.nn seconds (n.nn Kbytes/sec)
The sequence of commands are repeated for each file transferred.
Check that the files transferred:
ftp> :LISTF b@
FILENAME
PROG1 PROG2 PROG3 PROG4
Renaming Remote Files
You can rename remote files using the RENAME command as follows:
ftp> RENAME
remotefile newfile
To rename a file in other than the working directory on a UNIX-type system, include the
directory name with the
newfile
parameter as you normally would on the UNIX system