How do I debug a cron job?

How do I debug a cron job?
Answer
Tips on how to debug cron:
  1. change the schedule for the cron job so it runs every minute. It’s harder to debug something that happens infrequently.
  2. Make sure syslog sends cron logs to /var/log/cron.log. …
  3. Follow the log file to track cron’s activity. …
  4. Make sure the cron job user can receive mail.
5 янв. 2015 г.
 

Tìm kiếm

Back
Top