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.
Was this topic helpful?
Document Information
Modified date:
08 December 2018
UID
ibm10758197