on 11-03-2013 7:37 AM
Hello Experts,
my requirement, i will get file name from outbound proxy,
using the file name, i need to move the file from one folder to another folder ( file NFS protocol ).
for this requirement do i need to use OS command to move the file from one folder to another.
kindly let me know how to achieve this.
regards,
chinna
Hi chinna,
Why dont use the file adapter itself?, the file adapter can be used to move files inside the filesystem. You can set a pattern in the sender file adapter to pick up the desired files and you dont need ESR development. I think it will be easier to mantain a new scenario that to mantain a file script.
If you describe a little deeper your scenario the SCN community will help you better.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I catch up your idea now. You can send the file name inside the XML and with the ASMA properties to get that filename and to copy later. You can check this wiki http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=27217140, finally, in the "Run Operating System Command After Message Processing" you have an example to take the file by the ASMA filename. The example in that wiki could be helpful for you, you only need to change the rename command with the move/copy file statement. If you are in linux you have:
To move: mv source destination
To copy: cp source destination
Check this link: http://linuxcommand.org/lts0050.php
Regards.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.