on 07-10-2010 8:21 AM
Hi All,
I need to pick a file using SFTP adapter.
In the source location two files abc.A and abc.B are placed.
abc.A is placed only after abc.B is fully processed and complete.
I need to pick and process the file abc.B ,only after finding abc.A in source location.
only abc.B should be picked ,as abc.A file is just a indicator that abc.B is fully loaded and ready to be processed.
How this can be done in SFTP adapter?Please help.
Thanks,
Akkasali.
Hi Shekar/Pragati,
In SFTP there is no option to give OS command.
@Shekar: Am new to UNIX scripting,.Can you please direct me to any links related to unix scripting so that i can write in FTP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Run a OS level command to check the existence of abc.A file and in the filename parameter in channel mention abc.B file name.
I think there is no need to create a new directory to copy the abc.B file.
Regards,
Pragati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Best way to handle this is write some Unix Sxripting program at OS level copy the file B wheneve A file present in Folder,and create one more folder on FTP to store only B file,and connect to new folder using SFTP adapter .
it will avoide burden on implementing logic in PI side.it is bit simple too,as per my exp.
no standard feature available to acieve this type of requirement i think .
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.