Skip to content

Latest commit

 

History

History
executable file
·
15 lines (10 loc) · 370 Bytes

crontab-debugging.md

File metadata and controls

executable file
·
15 lines (10 loc) · 370 Bytes

How to debug cron job

Add >> /home/cron.log 2>&1 after your command like this:

* * * * * /usr/bin/docker exec -i test-scripts python /app/cron.py>> /home/cron.log 2>&1 

Output will be added to /home/cron.log

You want to know where is your crontab file?

Look here: /var/spool/cron/crontabs

System logs for cron?

grep CRON /var/log/syslog