It's probably more important to capture error output so that the error messages can be emailed to a system administrator. The "cron" system already sends an email to the owner of the cron job with the regular output from the script.
Will need to create a temporary file and fill it with error messages and other informational information as the script runs, so that it can be emailed during clean-up after a fatal error occurs.
It's probably more important to capture error output so that the error messages can be emailed to a system administrator. The "cron" system already sends an email to the owner of the cron job with the regular output from the script.
Will need to create a temporary file and fill it with error messages and other informational information as the script runs, so that it can be emailed during clean-up after a fatal error occurs.