on 08-01-2013 2:45 PM
Hello,
I have a situation where I have two files A and B that needs to be sent to vendor. Both need to be encrypted before transmission via FTP using third party software.
File A needs to be send daily and File B sent only once a month.
I can use one .bat file and have commands to encrypt both the files but every time the .bat is executed from OS command line in PI a error will be generated for File B that "file not found" because File B is available only once a month to be sent to vendor.
Both File A and B will be dropped in the same folder location.
Do I create two config scenarios and two separate bat files one for File A that runs daily and one for File B that runs once a month?
Is there a better way to do this ? we are on pi 7.0 EHp 1
Thanks,
Teresa
can you create two sender channels - one for each file and call a separate OS script for each file?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
So you have a File/FTP adapter which polls a particular folder. Both FileA and FileB are delivered to this folder. In addition it sounds like you have a Run OS command parameter. These only run if a file is found so your issue is that perhaps only FileA or FileB has arrived, not both. However, your batch script assumes both?
Well you could either have 2 separate senders + adapters etc
OR can't you just have a batch script which recognises the file being processed i.e. it is clever enough not to attempt to process a file which doesn't exist ?
OR couldn't the batch script run in a loop and process any files which are presented and so doesn't care whether there is 1, 2 or 100?
PaulC.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.