Setting Up Pre/Post Processing
HST Server can be configured to run scripts that are triggered by session start, session stop, file start, and file stop.
Your Aspera server can automatically execute a shell script from a pre-defined location:
/opt/aspera/var/
The script is executed as a result of four transfer events:
- Session start
- Session end
- Start of each individual file transfer in the session
- End of each individual file transfer in the session
The aspera-prepost script can also execute additional shell scripts, Perl scripts, native executables, and Java programs.
Environment Variables: Aspera has 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.
To set up pre/post processing for your Aspera transfer product: