HP 3000 Manuals

Transfer Files from the Remote Host to MPE XL [ HP ARPA File Transfer Protocol User's Guide ] MPE/iX 5.0 Documentation


HP ARPA File Transfer Protocol User's Guide

Transfer Files from the Remote Host to MPE XL 

Use 
the  GET command to copy a file from the remote host to your local MPE XL
system.  FTP does not delete the remote copy of the file.  Enter the  GET
command followed by the file name of the remote file, followed by the
name of the file you want to copy to on your local system.

     ftp> GET  remotefile localfile 

If you do not specify the  localfile name, the file will be transferred
with the  remotefile name specified:

     ftp> GET  remotefile 

If the  remotefile name used is not a valid file name on MPE XL, the file
transfer fails.


CAUTION If the local file name you specify already exists on your local MPE XL system, FTP overwrites the existing file without warning.
Default File Attributes Files copied from the remote host to MPE XL are saved with default file attributes as follows: File Type Record: Disc size(bytes),type Space -------------------------------------------------------------------------------------- ASCII 80, fixed 104,800 Binary 252,variable 104,800 Change File Building Parameters You can change how a file is copied to your local system with the MPE XL BUILD command parameters of the GET command using the following syntax: ftp> GET remotefile localfile;buildparms The supported BUILD command parameters are: ;REC=[-recsizebytes][,blkfactor[,[{F}][,{BINARY}] ] ] ] {V} {ASCII} [;DEV= device] [;CODE= filecode] [;DISC=[ numrec][,[ numextents][,[ initialloc] ] ] ] The parameter REC= can also be specified in words (two bytes per word) using a positive integer value. The default blkfactor size is one. See Chapter 6, MPE XL File System and Data Transfers for more information about FTP and supported BUILD command parameters. For additional information about BUILD parameters, use MPE XL on-line help (HELP BUILD PARMS), or see the MPE XL Commands Reference Manual. Using file building parameters, you can transfer a file as follows: ftp> GET remfile newfile;REC=-80,,F,ASCII In the next example, using CODE=PROG defaults to a target file of fixed binary, 128 words (which are the REC= default values): ftp> GET filex file2;CODE=PROG Transfer Files to Other Groups From within FTP, you cannot change groups. To transfer files to other groups in your account, you can exit from FTP, and re-log on into the other group, or specify the group name as part of the localfile specified. For example, you could transfer a file named nsprog to NSTEST1 in GROUP1 as follows: ftp> GET nsprog NSTEST1.GROUP1 Transfer Multiple Files To transfer a group of files from the remote system to your MPE XL system, use theMGET command. For example, transfer a group of binary files beginning with the letter "B" to your MPE XL system. First verify the files to be transferred: ftp> DIR 200 PORT command okay. 150 Opening data connection for /bin/ls -1 (192.50.42.32,50895) (0 bytes). total 33 drwxrwxrwx 1 mytest guest 10 Feb 13 18:44 bprog1 -rw-rw-rw- 1 mytest guest 100 Feb 12 18:42 bprog2 -rw-rw-rw- 1 mytest guest 100 Feb 12 18:42 bprog3 -rw-rw-rw- 1 mytest guest 110 Feb 13 18:43 bprog4 226 Transfer complete nnn bytes sent in n.nn seconds (n.nn Kbytes/sec) Transfer this group of binary files with interactive prompting off: ftp> BINARY 200 Type set to I. ftp> MGET b* 200 PORT command okay. Opening data connection for bprog1 (192.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 (192.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 BPROG1 BPROG2 BPROG3 BPROG4


MPE/iX 5.0 Documentation