File Mover Blog

  • 13 Apr

    Rename files before they are delivered to destination

    Q: For a particular transfer job, we have a need to rename files before they are delivered to destination. What we really need is to append the time and data to the file name before file extension. Can you please let me know how can I use this option efficiently to achieve what I am looking for. Example

    Actual file name: Data0018.dat

    Final file name at destination: Data0018<hhmmmmddyyyy>.dat

    Test setup of customer:

    limagito file mover Rename files before

    A: Please use our file rename option in your Destination setup:

    RegEx:   (.*)\.(.*)

    Replacement:   \1%TCD:HHNNMMDDYYYY:.\2

    limagito file mover rename files before

    If you need any help with this ‘Rename files before’ question, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Rename
  • 13 Apr

    Running a python script with Command as source but rule doesn’t end

    Running a python script with Command as source but rule doesn’t end

    Q: I’m trying to setup a rule with a cmd as source, it executes a python script. When I execute the rule, it works well (I have the expected result), but the rule doesn’t end. So, I don’t have any output in the Limagito GUI.

    It seems that the process continues to run :

    20/01/2025 12:08:02 Execute Rule Request from administrator at 192.168.92.38 []

    20/01/2025 12:08:02 Execute Command as Source: [CMD] Command, Command Line: CMD /C python xxx\mediaprint_api_v3.py

    20/01/2025 12:08:02 Set CMD as Source Output to C:\Users\ADMINI~1\AppData\Local\Temp\LimagitoX\LimagitoX.83\

    20/01/2025 12:08:02 Execute M1 Command, Exception Error: Cannot perform this operation when process is running

    20/01/2025 12:08:02 Execute Command as Source Succes, ExitCode : 4294967295, Result Path: C:\Users\ADMINI~1\AppData\Local\Temp\LimagitoX\LimagitoX.83\

    20/01/2025 12:08:07 Rule Disabled by administrator at 192.168.92.38 []

    Should I check an option when configuring the rule to avoid that ?

    A: You are using CMD /C so that part is OK. I guess you need to add something to the python script that will close afterwards.

    ChatGPT info:

    limagito file mover Running a python script

    Customer feedback:

    Indeed, i was trying things and I it ended successfully with a sys.exit(0)

    If you need any help with this ‘Running a python script’ question, please let us know.

    Best Regards,

    Limagito Team

    #python #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Command ,
  • 13 Apr

    Rule with fixed scheduled day don’t start

    Rule with fixed scheduled day don’t start

    Q: We have a problem con this Rule. 11 day of every month. Don’ t start.  If I run it by hand it starts and move the files perfectly. What am I doing wrong?

    limagito file mover fixed scheduled day

    A: Could you please check your file filter setup. If stabilize file option is enabled, please disable it. Feedback would be appreciated.

    • Our advice is not to use the ‘Stabilized File Check’ option with our ‘Windows as Source’ option. Instead use ‘Exclude Files in Use’.
    • Do not enable ‘Exclude Files locked By Other Moving Rules’ if you are not sure what this option does.
    • The ‘Stabilized File Check’ can be used with other Source options (like FTP, SFTP, ..). Remember that it needs at least two scans (triggers) to get a file moved/copied/deleted. The reason is that during the first scan, the system checks the file size and then at the next scan (second trigger), it compares the current file size with the previous measurement. If the sizes match, the file will be handled. If not, a third scan is needed, and so on.

    limagito file mover file filter stbilized file check option

    Feedback customer:

    Yes, with stabilize file disabled, now is working.

    If you need any help with this option, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Q&A ,
1 2 3 4 150
SEARCH