Install
openclaw skills install openclaw-skill-cron-schedulerManage cron jobs on macOS/Linux - list, add, remove, backup, and schedule recurring tasks
openclaw skills install openclaw-skill-cron-schedulerA comprehensive skill for managing cron jobs on both macOS and Linux systems.
crontab command (pre-installed on macOS/Linux)bash shellcronnext for accurate next-run predictions (Linux)# Make the script executable
chmod +x ~/.openclaw/workspace/skills/cron-scheduler/scripts/cron-helper.sh
# Optional: Add to PATH
echo 'export PATH="$HOME/.openclaw/workspace/skills/cron-scheduler/scripts:$PATH"' >> ~/.zshrc
source ~/.zshrc
cron-scheduler list
# or
cron-scheduler l
# Daily backup at 2am
cron-scheduler add "0 2 * * *" "~/scripts/backup.sh"
# Every hour
cron-scheduler add "0 * * * *" "~/scripts/hourly-task.sh"
# Every 5 minutes
cron-scheduler add "*/5 * * * *" "~/scripts/monitor.sh"
# By line number (use 'list' first to see line numbers)
cron-scheduler remove 3
# By pattern (matches anywhere in the line)
cron-scheduler removep "backup"
cron-scheduler edit
# or
cron-scheduler e
cron-scheduler next
# or
cron-scheduler n
# Create backup
cron-scheduler backup
# List available backups
cron-scheduler restore
# Restore specific backup
cron-scheduler restore ~/.cron-backups/crontab_20240315_143022.bak
# Check status
cron-scheduler service status
# Start cron (may require sudo)
cron-scheduler service start
# Stop cron (may require sudo)
cron-scheduler service stop
cron-scheduler templates
# or
cron-scheduler t
┌──────────── minute (0 - 59)
│ ┌────────── hour (0 - 23)
│ │ ┌──────── day of month (1 - 31)
│ │ │ ┌------ month (1 - 12)
│ │ │ │ ┌---- day of week (0 - 6, Sunday=0)
* * * * *
| Schedule | Description |
|---|---|
0 0 * * * | Daily at midnight |
0 2 * * * | Daily at 2am |
0 * * * * | Every hour |
*/5 * * * * | Every 5 minutes |
0 9 * * 1-5 | Weekdays at 9am |
0 0 * * 0 | Weekly on Sunday |
0 0 1 * * | Monthly on 1st |
launchctl for service managementsystemctl for service management