Skip to Content
author's profile photo
Former Member

OS Command for receiver file adapter

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jul 12, 2007 at 04:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jul 12, 2007 at 04:08 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 10:37 AM

    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

    Add comment
    10|10000 characters needed characters exceeded