on 10-24-2011 9:39 AM
Hi All,
I need to add the current date to the archive folder name of my file sender adapter, so that files are archived in folders based on the date on which they are picked.
Can this be achieved?
Regards,
Diptee
>Can this be achieved?
Writing a script for adding timestamp to archive folder is better option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Diptee,
I am not sure if there is any easy way of passing filename directly to script which is called from OS.
The other work around i can see here is...have a temp archive folder where your sender communication channel will archive the file adding tmpstmp in temp archive folder and then call a script and read the file name in the temp archive directory and make new archive directory with the archived file name and move the file from temp to new archive directory.
In this way you can have your files archived in the directories which tmpstmp too.
you just need to use simple commands to read the filename and creating directory and moving the file...
Thanks,
Prasanthi.
Hi Diptee,
Running an OS script would be the easiest solution here.
Thanks,
Vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Although it is not possible to create folders based on current date using File Adapter, you can very well use an unix script.
Run a shell script from file sender adapter before or after processing depending upon your requirement.
Regards
Krish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deeptee,
I would always recommend archiving within the same server where the File sender adapter is accessing.
Although it would be possible via script to pick up a file and transfer it to another server, I would not want to complex the scenario esepcially when the script is running via PI trigger.
Always keep the scenario as simple as it is cos monitoring would be always difficult with respect to scripts.
I would still recommen having a simple folder and archive all the files by adding timestamp. You can still view all the files based on Date/Time.
It is just a suggestion!
Regards
Krish
if you want to add system date to archive file very much possible and straight forward but adding date to folder not possible i think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.