|Pre- and Post-Processing (Prepost)|
Your Aspera server can execute a shell script from a pre-defined location:
The script is executed as a result of four transfer events:
The aspera-prepost script can also execute additional shell scripts, Perl scripts, native executables, and Java programs. Aspera sets several environment variables for aspera-prepost that you can use in your own custom scripts. These environment variables are described in detail in Pre/Post Variables. Depending on usage, pre- and post-processing may consume a large amount of system resources. Be sure to evaluate your system performance and apply this feature appropriately.
Follow the steps below to set up pre/post processing for your Aspera transfer product:
This file runs the perl script aspera-notif.pl, which is an email notification script that sends emails (according to user-defined filters) to one or more recipients. Filters and lists are defined in the Aspera configuration file aspera.conf, which is located in /opt/aspera/etc.
Copy the contents of aspera-prepost.disable into a new file, and name it as follows:
Ensure that execute privileges are enabled (at least r-xr-xr-x).
Custom scripts can be written directly into the script file aspera-prepost. For example, to add the custom script script1.pl to your pre/post script, insert the following line (into aspera-prepost):
... perl script1.pl ...