cancel
Showing results for 
Search instead for 
Did you mean: 

FTP command using File adapter

Former Member
0 Kudos

Hi,

When i use the file adapter in FTP mode i need to add an xtra command before sending the file.

I.ex: SITE LRECL=84 RECFM=VB WRAPRECORD

Using manual connect i do this

ftp 111.111.111.111.

User/pass

SITE LRECL=84 RECFM=VB WRAPRECORD

put c: est.txt test.txt

quit

But how do i add the xtra command? The Run OS command thing - thats before FTP is connected isn´t it?

/Jakob

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If possibe, you could write the file on a file server using the NFS option of hte file adapter, and then use a simple shell script (if on UNIX) which contains your FTP commands to do the FTP part. You will specify the script name in the the 'Run OS Command After Message Processing' parameters.

I have used something very similar in the past...