Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Sometimes Rx-Universe needs to produce a temporary file in order to process a request (such as a report or an API endpoint request). As of version 7.66 the folder “TEMPFILES” will be used to hold these. Under some circumstances these files may last longer than the program that called them (for example if the computer experiences power failure in the middle of generating a report). The program PURGE_TEMPFILES can be run periodically to clean up any residual files.

Running as a task

Once the trigger has been set up, the “Action” for the scheduled task is:

Program: wrun32.exe (optionally with the complete path if it is not in the system PATH)

Arguments: -c omics.cfg -y omics6 -y xmlif.dll PURGE_TEMPFILES

Optional Arguments: This program currently accepts a single optional argument. You may add “AGE=x” to the end of the Arguments to control how old a temporary file must be to be to be included in the purge. If not provided, this task will delete all files created more than 7 days before the current time.

Examples

-c omics.cfg -y omics6 -y xmlif.dll PURGE_TEMPFILES

Run at noon on March 11 2024 will delete all files older than noon on March 4 2024

-c omics.cfg -y omics6 -y xmlif.dll PURGE_TEMPFILES “AGE=5”

Run at noon on March 10 2024 will delete all files older than noon on March 6 2024

Running from command line

The PURGE_TEMPFILES program can also be run from the command line (or invoked by a third-party system) - it does not have to be run as a scheduled task. To illustrate, the following command could be run from the root Rx-Universe folder, from the command line:

wrun32 -c omics.cfg -y OMICS6 -y XMLIF.DLL PURGE_TEMPFILES “AGE=5”

This invokes exactly the same instruction as the previous, scheduled, task.

Actions

The program will attempt examine all files currently in RxUniverse\TEMPFILES and delete any older than AGE days old.

  • No labels