I want to know how I can see exactly what the cron jobs are doing on each execution. Where are the log files located? Or can I send the output to my email? I have set the email address to send the log when the cron job runs but I haven't received anything yet.
How to log cron jobs
cronlogging
Best Answer
will log all output from the cron job to /var/log/myjob.log
You might use
mail
to send emails. Most systems will send unhandledcron
job output by email to root or the corresponding user.