Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


neon
  •  neon
  • No customer Topic Starter
2009-06-16T19:34:47Z
Hi,

I'm trying to set up the PGP decrption function.

We receive several encrypted files at the same time once a day.
They have different file names, but the decrypted file names are same for all files like below. Due to this, the decrypted file are overwritten.
Do you have any good idea to solve this?


File Name Before Decryption(which we receive):
- test0616a.cer
- test0616b.cer
- test0616c.cer

File Name After Decryption:
- test0616.cer
- test0616.cer
- test0616.cer

File Name I would like them to be after decryption:
- test0616_test0616a.cer
- test0616_test0616b.cer
- test0616_test0616c.cer

Thank you in advance
Sponsor
Forum information
Support
2009-06-16T19:54:27Z
If you use a File trigger for this you may want to use something like this in the destination file name:

*_{TRIGGER(Active,LastTrigger,File.Result.Name)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
neon
  •  neon
  • No customer Topic Starter
2009-06-16T21:57:01Z
Hi,

It doesn't work.
Created file is still "test0616.cer".
And triggered file seems to be always same file since the three files are uploaded at the same time.

Does the variables work for PGP Decryption Destination file?(Or does it depend on Visual Cron Version?)

<Setting>
- Visual Cron Version:4.9.3
- PGP Main Setting Tab
Source File: D:\Source_Folder\*.cer
Destination File: D:\Destination_Folder\*_{TRIGGER(Active,LastTrigger,File.Result.Name)}
Use default naming for destination file:Unchecked

<Result Output of Visual Cron>
D:\Source_Folder\test0616a.cer > D:\Destination_Folder\*_test0616a.cer
D:\Source_Folder\test0616b.cer > D:\Destination_Folder\*_test0616a.cer
D:\Source_Folder\test0616c.cer > D:\Destination_Folder\*_test0616a.cer

<Created File in D:\Destination_Folder>
test0616.cer

(File names are different from the actual ones.)
Support
2009-06-17T18:53:03Z
We can't reproduce this. I guess it is related to the older version you run. When we do this the file is created as expected. Please upgrade to at least version 4.9.40.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
neon
  •  neon
  • No customer Topic Starter
2009-07-07T00:52:32Z
Hi,

I've installed the latest version(5.1.6) and tested.
But the result was like below:

<Output>
D:\Test\before\test0616a.cer > D:\Test\after\test0616_test0616a.cer
D:\Test\before\test0616b.cer > D:\Test\after\test0616_test0616a.cer

Since these two files are put at the same time, they are processed by one trigger, which leads the result.

Could you kindly let us know whether you can think of any solution for this?

Best Regards
Support
2009-07-07T11:24:02Z
Did you have "Put job in queue" in Job main settings checked?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
neon
  •  neon
  • No customer Topic Starter
2009-07-10T21:38:33Z
Hi,

I've checked "Put job in queue" on and processed the files.
The result is that decrypted file names are OK.
But Output log seems incorrect, and both of contents of the decrypted files are same(both has the content of test_6r00.cer).

Could you please let me know the solution of this?

<Encrypted file>
test_6r00.cer, which has "aaaaaaa" as content.
test_6t00.cer, which has "bbbbbbb" as content.

<Decrypted file>
test0630_test_6r00.cer, which has "aaaaaaa" as content.
test0630_test_6t00.cer, which has "aaaaaaa" as content.


<Output log>
D:\Test\before\test_6r00.cer > D:\Test\after\test0630_test_6r00.cer
D:\Test\before\test_6t00.cer > D:\Test\after\test0630_test_6r00.cer

Best Regards
Support
2009-07-10T21:41:46Z
It seems like you use the wrong Variable somewhere. Which Variable to you use?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
neon
  •  neon
  • No customer Topic Starter
2009-07-10T21:45:29Z
Hi,

Thank you very much for your quick response and continued support.

The Variable is:
*_{TRIGGER(Active,LastTrigger,File.Result.Name)}

Regards
Support
2009-07-14T00:47:25Z
The Variable is correct. I assume that the output is from the Rename Task. I am trying to understand how you get two files there - there should only be one line unless you are not missing move/delete of file once you are done?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
neon
  •  neon
  • No customer Topic Starter
2009-07-14T03:40:27Z
Hi,

Finally I was able to decrypt the files correctly.

I added {TRIGGER(Active,LastTrigger,File.Result.Name)} in field "Include file mask" of "PGP>File Filter>Location" tab.

Thank you very much for your very kind support!
Support
2009-07-14T09:08:06Z
Great! Thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top