1 GET The GET command does the following: o Copies remote files to the local host. o Copies files from a DECnet node. To use this command, you must have an FTP session with a remote host. DCL-Style Format GET [ /CONFIRM | /FDL ] remote_file [ local_file ] UNIX Style Formats get remote_file [ local_file ] mget remote_files 2 Parameters remote_file Required. Name of the remote file to copy. o To copy multiple files, separate the names with commas or plus signs. o When you specify multiple remote files, you cannot specify a local file name. o To copy a file from a remote DECnet node, use the full specification: node name, device, directory, file name. local_file Optional. Default: Same name (without any device or directory names). New name for the copied file. You cannot specify a local file name if you specify: o Multiple remote files o Wildcards in the the remote file name 2 Qualifiers /CONFIRM Optional. Default: immediate execution. Asks you for confirmation before executing the copy operation. /FDL Optional. Default: no secondary file created. Uses a secondary file with the copied file's OpenVMS RMS record attributes (if you previously entered a PUT/FDL command). The SET TYPE command determines the type of file: o Specifying ASCII results in a sequential file with variable records. Select this type when transferring ASCII text files. o Specifying IMAGE results in a sequential file with fixed records of 512 bytes. Select this type when transferring non-ASCII files such as executable image files. 2 Examples 1.FTP> GET "/seasons/standings/spring.deliveries" SPORTS.TXT 200 PORT command successful 150 Opening ASCII mode data connection for spring.stats. . . . Copies the UNIX file spring.deliveries to the OpenVMS host, where it is named SPORTS.TXT. 2.FTP> GET spring.deliveries SPORTS.TXT Copies the same file (spring.deliveries) when it is in your remote working directory. 3.FTP> MGET *.DOC 200 PORT command successful 150 Opening ASCII mode data connection for cast.doc;1 (130.180.4.8,27) 226 Transfer complete. local:cast.doc;1 remote: cast.doc;1 1222 bytes received in 00:00:00.01 seconds (70.19 Kbytes/s) 200 PORT command successful 150 Opening ASCII mode data connection for director.doc;3 (130.180.4.8,28) 226 Transfer complete. local: director.doc;1 remote: director.doc;3 90 bytes received in 00:00:00.01 seconds (5.49 Kbytes/s) FTP> Copies all the UNIX files ending with doc. 4.FTP> GET/CONFIRM *.*;* Get EDTINI.EDT ? [Y or N] [Y]: Y . . . Before executing the copy operation for every file in the remote default directory, FTP asks, one-by-one, to confirm that you want to copy each file. To confirm MPUT, MGET, and MDELETE operations, use the FTP prompt command before entering the MPUT, MGET, and MDELETE commands. FTP> prompt Interactive mode on. FTP> mget C* Get CHRONOS ? [Y or N or Q or G] [Y]: y 200 PORT command successful. 150 Opening ASCII mode data connection for CHRONOS (130.180.4.8,2150) (1596 bytes). 226 Transfer complete. local: WORK1$:[VANA]CHRONOS.;2 remote: CHRONOS 1596 bytes received in 00:00:00.04 seconds (31.80 Kbytes/s) 5.FTP> GET/FDL FEATHERS.DIS Copies and preserves the record attributes of feathers.dis. (A PUT/FDL command was previously entered.)