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

How to execute an external script after report completion

Avatar photoCustomer January 31, 2022 at 12:56 am

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?

Viewing 6 reply threads
  • Author
    Replies
    • Support January 31, 2022 at 5:51 pm  

      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.

    • Avatar photoCustomer February 1, 2022 at 8:29 pm  

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

    • Support February 3, 2022 at 1:04 pm  

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

    • Avatar photoCustomer February 4, 2022 at 10:09 am  

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

    • Support February 4, 2022 at 9:23 pm  

      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.

    • Avatar photoCustomer February 6, 2022 at 8:32 pm  

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

    • Support February 7, 2022 at 5:50 am  

      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.

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: