cron
Installation
Summary
Schedule and manage cron jobs with configuration, logging, and troubleshooting guidance.
- Covers crontab syntax, time formats, special characters, and predefined scheduling shortcuts like @daily, @hourly, and @reboot
- Supports user crontabs, system-wide crontab files, /etc/cron.d directories, and predefined hourly/daily/weekly/monthly execution directories
- Includes best practices for script templates, environment variables, lock files to prevent duplicate execution, and output redirection
- Provides debugging techniques, log inspection methods, and a troubleshooting table for common issues like missing commands, permission errors, and environment variable problems
SKILL.md
定时任务管理
概述
Cron 定时任务配置、日志监控、故障排查等技能。
Crontab 基础
管理命令
# 编辑当前用户的 crontab
crontab -e
# 查看当前用户的 crontab
crontab -l
# 删除当前用户的 crontab
crontab -r
Related skills