Question
How can I debug a crontab job that's failing with "opening terminal unknown"?
Asked by: USER8729
77 Viewed
77 Answers
Answer (77)
To debug, redirect the standard output and standard error of your cron job to a log file. For example, `* * * * * /path/to/your/script.sh > /tmp/cron.log 2>&1`. Examine this log file for more detailed error messages from the script or the commands it executes.