cancel
Showing results for 
Search instead for 
Did you mean: 

file adapter put command

Former Member
0 Kudos

Hi everyone,

Does anyone know what kind of put statment the adapter creates to write files to a ftp? How can I see the exact command executed?

And is there any possibility to change this command manually? Using advanced mode etc.

Thanks...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chris,

One easy way to see the commands is to connect PI to an FTP server which can log/display them. For example, I used the FileZilla ftp server and it displayed the following:

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> STOR XI_ftp_20100820-152427-200.tmp

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> 150 Opening data channel for file transfer.

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> 226 Transfer OK

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> RNFR XI_ftp_20100820-152427-200.tmp

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> 350 File exists, ready for destination name.

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> RNTO xi_out20100820-152427-082.txt

(000008)8/20/2010 8:24:27 AM - myuser (xxx.xxx.xxx.xxx)> 250 file renamed successfully

In the example above i have the option to use a temporary file name selected in the File Adapter. So, it's transferred using the temporary file name using STOR and then renamed to the final file name using RNFR and RNTO.

Thanks,

-Russ