Logging PDF generation on Linux systems

To gather and review the output from the call to athenapdf, redirect the stdout and stderr from athenapdf to a file.

Before doing the redirection, ensure that you enabled logging for Web Reports as it is explained in Logging Web Reports.

Run these steps to do the redirection:
  1. Make a backup copy of the script

    /var/opt/BESWebReportsServer/BESReportsData/BESExe/generatepdf.sh

  2. Update the script by changing the following line:
    $besexe_folder$athena_folder$athena_executable --ignore-certificate-errors
     --delay 5000 --no-cache $arg1 $arg2
    as follows:
    $besexe_folder$athena_folder$athena_executable --ignore-certificate-errors 
    --delay 5000 --no-cache $arg1 $arg2 1>/tmp/pdfout.txt 
    By doing so you redirect the stdout and stderr from athenapdf to the /tmp/pdfout.txt file.