cron-scheduler

Manage cron jobs on macOS/Linux - list, add, remove, backup, and schedule recurring tasks

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cron-scheduler" with this command: npx skills add ppopen/openclaw-skill-cron-scheduler

Cron Scheduler Skill

A comprehensive skill for managing cron jobs on both macOS and Linux systems.

Features

  1. List Jobs - View all cron jobs for the current user
  2. Add Job - Create new cron jobs with schedule validation
  3. Remove Job - Delete jobs by line number or pattern
  4. Edit Crontab - Open crontab in your default editor
  5. Next Runs - See when each job will execute next
  6. Backup/Restore - Safely backup and restore crontab configurations
  7. Service Control - Start/stop/status of cron daemon
  8. Templates - Common schedule patterns for quick setup

Requirements

  • crontab command (pre-installed on macOS/Linux)
  • bash shell
  • Optional: cronnext for accurate next-run predictions (Linux)

Installation

# 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

Usage

List all cron jobs

cron-scheduler list
# or
cron-scheduler l

Add a new cron job

# 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"

Remove cron jobs

# 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"

Edit crontab directly

cron-scheduler edit
# or
cron-scheduler e

Show next run times

cron-scheduler next
# or
cron-scheduler n

Backup and restore

# Create backup
cron-scheduler backup

# List available backups
cron-scheduler restore

# Restore specific backup
cron-scheduler restore ~/.cron-backups/crontab_20240315_143022.bak

Manage cron service

# Check status
cron-scheduler service status

# Start cron (may require sudo)
cron-scheduler service start

# Stop cron (may require sudo)
cron-scheduler service stop

View templates

cron-scheduler templates
# or
cron-scheduler t

Cron Schedule Format

┌──────────── minute (0 - 59)
│ ┌────────── hour (0 - 23)
│ │ ┌──────── day of month (1 - 31)
│ │ │ ┌------ month (1 - 12)
│ │ │ │ ┌---- day of week (0 - 6, Sunday=0)
* * * * *

Common Examples

ScheduleDescription
0 0 * * *Daily at midnight
0 2 * * *Daily at 2am
0 * * * *Every hour
*/5 * * * *Every 5 minutes
0 9 * * 1-5Weekdays at 9am
0 0 * * 0Weekly on Sunday
0 0 1 * *Monthly on 1st

Platform Support

  • macOS: Uses launchctl for service management
  • Linux: Uses systemctl for service management

Safety Features

  • Temporary files used for atomic crontab modifications
  • Backup created before any destructive operations
  • Confirmation prompt before restore
  • Schedule validation before adding jobs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Eyes

全球热点事件监控与影响分析。覆盖战争冲突、地缘摩擦、重大政策、疫情、自然灾害、创新技术等可能影响经济、市场和投资的事件,并按行业、汇率、大宗商品链路分析影响。也用于 Cron 定时推送热点摘要(早8点开盘前瞻/晚8点收盘复盘/整点扫描)。

Registry SourceRecently Updated
General

Myapp Creator

Create or update standalone single-file HTML apps with specified features, saving them to fe-service without invoking LLM directly.

Registry SourceRecently Updated
General

ia-debugging

Systematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected....

Registry SourceRecently Updated
4760iliaal
General

全网招中标数据平台-知了标讯

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分...

Registry SourceRecently Updated