File Mover Blog

  • 25 Sep

    Sending Mails (SMTP) via an SSH tunnel

    In version v2023.9.25.0 we added an option that allows you sending emails using SMTP via an SSH tunnel.

    • Important is to use our second API vendor – CK

    limagito file mover smtp as destination

    • Select the SSH Tab for your setup:

    This option let us connect to an SSH server and creates a tunnel for SMTP. The ‘Host’ is the hostname (or IP address) of the SSH server. The ‘Port’ is typically 22, which is the standard SSH port number. At this moment only SSH authentication using username and password is possible.

    limagito file mover smtp over a ssh tunnel

    • In version v2023.9.30.0 we added “SSH Public-Key Authentication”:

    – Authenticates with the SSH server using public-key authentication. The corresponding public key must have been installed on the SSH server. Authentication will succeed if the matching “Username” is provided.

    limagito file mover smtp via an SSH tunnel

    If you need any info about this option, please let us know.

    #smtp #ssh #filetransfer #filemanagement

    Best regards,

    Limagito Team

    By Limagito-Team Email SMTP ,
  • 24 Sep

    How to exit rule when SQL record count is 0

    How to exit rule when SQL record count is 0

    Q: We have an SQL as source job that emails the results of the SQL statement as a file. The problem is that we do not want the results/email sent when there are no records. I see that the variable %QSC contains the record count. How can I use that variable to exit the rule and not email the empty results file?

    A: So I guess you have SMTP as Destination?
    Please add the following SQL ‘On Destination’ script and try once more:

    limagito file mover paascal script option

    Begin
      psExitCode:= 1;
      // ... add your code here
      If psQSC = 0 Then
        psExitCode:= 0;
    End.
    

    limagito file mover pascal script setup

    • Feedback customer: Yes, it is a SMTP destination. Based off what you sent below I added the Pascal script with the addition of some logging:

    limagito file mover pascal script setup

    This works as expected and what we want, but it also creates the temp file. Is there a way the temp file can be suppressed? If not, I can add a rule to delete them.

    8/9/2023 5:07:43 PM RecordCount: 0

    8/9/2023 5:07:43 PM FieldDefs: “contributor_system”,”logged_datetime”,”mrn”,”patient_name”,”fin”,”error_status”,”error_text”,”message_text”

    8/9/2023 5:07:43 PM Copied Cerner_ESI_log_other_2023-08-09.csv to C:\Users\SVCFIL~1\AppData\Local\Temp\LimagitoX\LimagitoX.165\Cerner_ESI_log_other_2023-08-09.csv;110

    8/9/2023 5:07:43 PM Backup Successful C:\Users\SVCFIL~1\AppData\Local\Temp\LimagitoX\LimagitoX.165\Cerner_ESI_log_other_2023-08-09.csv to C:\Data\SourceFileBackups\Prod\2023\08\09\Cerner_ESI_log_other_2023-08-09.csv

    8/9/2023 5:07:43 PM Compiling..

    8/9/2023 5:07:43 PM Compiled Succesfully

    8/9/2023 5:07:43 PM psQSC (SQL record count) = 0. Exiting rule.

    8/9/2023 5:07:43 PM Total Files Redo, Count: 1 & Size: 110

    • Reply to customer:

    Please try to add

    DeleteFile(psFilePath + psFileName);

    to the script.

    Begin
      psExitCode:= 1;
      // ... add your code here
      If psQSC = 0 Then
      Begin
        DeleteFile(psFilePath + psFileName);
        psExitCode:= 0;
      End;
    End.
    

    It seems you are using our Backup option. In your case, we would add the ‘backup’ as a second WIN destination because otherwise you still get the temporary file in your backup folder (instead of using our BACKUP option).

    • Feedback customer: That got it! Thanks you for your help. We are all good now and the rule is working as we want it to.

    If you need any info about this ‘exit rule when SQL record count is 0’ question, please let us know.

    #sql #filetransfer #filemanagement

    Best regards,

    Limagito Team

    By Limagito-Team SQL ,
  • 24 Sep

    How to use PGP encryption with several keys

    How to use PGP encryption with several keys

    Q: I need to encrypt a file with several pgp public keys but in the window for encryption option, we can only select one public key file. Is there a way to set the PGP encryption output file for more than one recipient in Limagito so that more than one private key can open the file?

    A: Yes this is possible. PGP encryption is available in the Destination setup. Select PGP tab en click add ‘Public Key’ and select multiple key files. After they are selected, Click Open

    limagito file mover adding multiple pgp public keys

    Result will like this:

    limagito file mover pgp encryption and decryption option

    Feedback customer: That worked, thank you!

    If you need any info about this ‘several keys’ question, please let us know.

    #pgp #filetransfer #filemanagement

    Best regards,

    Limagito Team

1 14 15 16 17 18 19 20 135
SEARCH