Question & Answer
Question
Put (put) and Multiple Put (mput) Commands
Answer
Put (put) and Multiple Put (mput) Commands
Use the put commandto upload files to Sterling B2B CollaborationNetwork.Use the Multiple Put (mput) command with thewildcard character (*)) to upload multiplefiles.
Some FTP clients require you to manually acknowledgeeach file name when executing the mput command.This makes automating FTP scripts difficult because it requires youto be present when the script is executed. You can usually turn offthis feature by sending the prompt command once in the session priorto any mput command.
Sample put Command
The following is a sampleFTP session using the put command after you have moved into the /senddirectory.
Clientcommand:
put output.edi
Server response:
200 PORT command successful.150 Opening ASCII mode data connection for output.edi.150 Opening data connection.226 Transfer complete.ftp: 715 bytes sent in 0.00Seconds 1234.00Kbytes/sec.
Sample mput Command
The followingis a sample FTP session using the mput commandto upload all files ending with .edi.
Clientcommand:
mput *.edi
Server response:
200 PORT command successful.150 Opening ASCII mode data connection for output.edi.150 Opening data connection.226 Transfer complete.ftp: 1215 bytes sent in 0.00Seconds 1234.00Kbytes/sec.200 PORT command successful.150 Opening ASCII mode data connection for another.edi.150 Opening data connection.226 Transfer complete.ftp: 406 bytes sent in 0.00Seconds 1234.00Kbytes/sec.200 PORT command successful.150 Opening ASCII mode data connection for somethingelse.edi.150 Opening data connection.226 Transfer complete.ftp: 52369 bytes sent in 0.00Seconds 1234.00Kbytes/sec.
Was this topic helpful?
Document Information
Modified date:
08 December 2018
UID
ibm10758577