|Pre- and Post-Processing (Prepost)|
Your Aspera server can execute a batch script from a pre-defined location:
C:\Program Files[ (x86)]\Aspera\Point-to-Point\var
The script is executed as a result of four transfer events:
The aspera-prepost.bat script can also execute additional batch scripts, Perl scripts, native executables, and Java programs. Aspera sets several environment variables for aspera-prepost.bat 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:
> perl -v
If Perl is supported by your system, a confirmation message with the Perl version is output. If Perl is not supported, and you want to use Perl scripts in your pre/post processing, you can download and install Active Perl from the following link: http://www.activestate.com/store/activeperl/download/.
C:\Program Files[ (x86)]\Aspera\Point-to-Point\var\aspera-prepost-email.bat
Copy the contents of aspera-prepost-email.bat into a new file, and name it as follows:
C:\Program Files[ (x86)]\Aspera\Point-to-Point\custom
When you create custom scripts, move them into the suggested directory and add the scripts (as commands) to the file aspera-prepost.bat. For example, to add the custom script script1.pl to your pre/post script, insert the following line (into aspera-prepost.bat):
... C:\Perl\bin\perl.exe ..\custom\script1.pl ...