Cron Monitor Skill
Manage cron jobs.
List Current Cron Jobs
crontab -l 2>/dev/null || echo "No crontab for current user"
System Cron Jobs
ls -la /etc/cron.d/ 2>/dev/null
cat /etc/crontab 2>/dev/null
Check Cron Logs
grep CRON /var/log/syslog 2>/dev/null | tail -20
journalctl -u cron --since "1 hour ago" 2>/dev/null | tail -20
Debug a Cron Job
# Test the command manually first
/path/to/script.sh
# Check PATH in cron (minimal by default)
echo "PATH=$PATH" | crontab -l | head -1
Notes
- Cron uses a minimal PATH — use full paths in scripts
- Redirect output:
* * * * * /script.sh >> /var/log/script.log 2>&1 - Check file permissions on scripts