Challenge - 5 Problems
Cron Log Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Identify the cron job execution from log output
Given the following snippet from a cron log, what command was executed by cron?
Linux CLI
Jun 10 14:05:01 server CRON[12345]: (root) CMD (/usr/bin/backup.sh)
Attempts:
2 left
💡 Hint
Look for the CMD part in the log line.
✗ Incorrect
The cron log line shows the command executed after CMD. Here it is /usr/bin/backup.sh.
❓ Troubleshoot
intermediate1:30remaining
Diagnose why a cron job did not run
You see no output or log entries for a cron job scheduled at 3 AM daily. Which of these is the most likely reason?
Attempts:
2 left
💡 Hint
If cron daemon is stopped, no jobs run or log.
✗ Incorrect
If the cron daemon is not running, no cron jobs will execute or produce logs.
❓ Configuration
advanced2:00remaining
Configure cron to log all job outputs to a specific file
Which crontab entry correctly redirects both stdout and stderr of /usr/bin/script.sh to /var/log/script.log?
Attempts:
2 left
💡 Hint
Redirect stdout first, then stderr to the same file.
✗ Incorrect
The correct syntax redirects stdout to the file, then redirects stderr (2) to where stdout (1) points.
✅ Best Practice
advanced1:30remaining
Best practice for monitoring cron job failures
Which method is best to get notified immediately when a cron job fails?
Attempts:
2 left
💡 Hint
Immediate notification helps quick response.
✗ Incorrect
Configuring cron to send emails on failure alerts you immediately to fix issues.
🧠 Conceptual
expert2:00remaining
Understanding cron log rotation impact
If cron logs are rotated daily and compressed, what is a key consideration for long-term cron job monitoring?
Attempts:
2 left
💡 Hint
Compressed logs need special handling to read.
✗ Incorrect
Rotated logs are compressed files; to review older cron logs, you must decompress them first.