Question & Answer
Question
Get and Multiple Get (mget) Commands
Answer
Get and Multiple Get (mget) Commands
Use the get command to download individual files. Use the Multiple Get (mget) command with the wildcard character (*) to download all available files in a directory. Most FTP clients provide the 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 file name when executing the mget command. This makes automating FTP scripts difficult because it requires you to be present when the script is executed. You can usually turn off this feature by sending the prompt command prior to the mget command.
Sample get Command
The following is a sample FTP session using the get command.
Client command:
get #0663597
Server response:
200 PORT command successful.150 Opening data connection.226 Transfer complete. 3742 Bytes sent.
Sample mget Command
The following is a sample FTP session using the mget command.
Client command:
mget *
Server response:
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.200 PORT command successful.150 Opening data connection.226 Transfer complete. 5620 Bytes sent.
Was this topic helpful?
Document Information
More support for:
Sterling Total Payments for Financial Services
Software version:
All Versions
Document number:
758879
Modified date:
08 December 2018
UID
ibm10758879