cancel
Showing results for 
Search instead for 
Did you mean: 

OS Command for receiver file adapter

Former Member
0 Kudos

Hi Guys,

I have a requirement that in the target folder before putting the file, I have to rename the exisitng file then put the file. The target folder is in another machine and I have to use FTP option to send file.

is it possible to use OS command after processing option in the receiver file adapter to do this? please let me know how to handle this.

Thanks

Mukesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Mukesh,

You cannot rename the file in the FTP folder. What you can do is write a OS script where it logs in into the FTP site and renames the file. Then use this OS script before message processing so that it renames the file before you write the actual file.

If you want to rename a file which is on the applicaiton server using NFS then you can directly rename it from the command prompt.

Regards,

---Satish

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mukesh,

Did u got the solution for this problem because i also hv the same requirement. If u hv a solution pls let me know.

Regards,

Purush

Former Member
0 Kudos

Hey

you can do that in receiver File adapter itself,will every file be named dynamically based upon the sending file name? or all the received files will be named the same(just the diff. in time stamp)

you can also write a shell script and execute that on the receiving FTP server which changes the name of the file

Thanx

Ahmad