Home › Discussions › Questions & Answers › How to execute an external script after report completion

How to execute an external script after report completion

Avatar photoCustomer Questions & Answers 7 replies

I need to run a shell script to compress the output file and then FTP it to a separate server immediately after the report finishes running. Where do I define this action?

7 replies

  • Support Enginatics

    You define this using the Custom Postprocess runtime option. This option allows a custom shell script to run after report completion, typically used for distribution or output transformation.

  • Where must this shell script file be located on the application server?

  • Support Enginatics

    The script must be placed under the $CUSTOM_TOP/bin/custom/ directory, for instance, `$XXEN_TOP/bin/custom/generate_and_send_pdf.sh`.

  • If I create a new script, how do I make it selectable in the Options window LOV?

  • Support Enginatics

    To add a new custom postprocess script name to the runtime options LOV, you must add it to the Oracle lookup XXEN_REPORT_POSTPROCESS_SCRIPT.

  • Can I default this custom postprocess script at the report setup level?

  • Support Enginatics

    Yes, the Report Options section of the Setup window includes the Custom Postprocess field, which provides the same functionality as the runtime option to default a postprocess on the report level.

  • You must be logged in to reply to this post.