IBM Support

Get and Multiple Get (mget) Commands

Question & Answer


Question

Get and Multiple Get (mget) Commands

Answer

Get and Multiple Get (mget) Commands

Use the get commandto download individual files. Use the Multiple Get (mget)command with the wildcard character (*) todownload all available files in a mailslot. Most FTP clients providethe ability to rename files as they are retrieved using the get command.This is not usually possible using the mget command.

Some FTP clients require you to manually acknowledge each filename when executing the mget command. Thismakes automating FTP scripts difficult because it requires you tobe present when the script is executed. You can usually turn off thisfeature by sending the prompt command prior to the mget command.

Sample get Commands

The followingis a sample FTP session using the get command.

Clientcommand:

get 322322850902129928169054

Thefollowing is a sample FTP session using the get commandand renaming the file.

Client command:

get 322322850902129928169054 companyb.001

Sample mget Command

The following is a sampleFTP session using the mget command with a wildcardcharacter (*) which gets all of the availablefiles in the /receive directory. The namesof the files are retained.

Client command:

mget *

Serverresponse:

200 PORT command successful.150 Opening data connection.226 Transfer complete. 1215 bytes sent.200 PORT command successful.150 Opening data connection.226 Transfer complete. 406 bytes sent.200 PORT command successful.150 Opening data connection.226 Transfer complete. 52369 bytes sent.

"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10758197