on 07-12-2007 5:04 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.