# Cron Scheduling

> Use when scheduling recurring tasks or managing background services — crontab jobs, cron syntax, macOS launchd/launchctl services via lunchy-go, start/stop/restart services, recurring scripts.

- Skill: `aashutosh396/cron-scheduling` (Agent Skill)
- Install (CLI): `npx get-skill add aashutosh396/cron-scheduling`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aashutosh396/cron-scheduling/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: aashutosh396 (https://skillmd.com/u/aashutosh396)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/aashutosh396/cron-scheduling

---


# Cron & Service Scheduling

Schedule recurring commands with `crontab` and manage macOS launchd services
with `lunchy-go`.

## When to use
Setting up recurring jobs, running scripts on a schedule, starting/stopping/
restarting background services (redis, custom daemons).

## crontab (cross-platform)

```bash
crontab -l    # List jobs
crontab -e    # Edit jobs

# Syntax: MIN HOUR DOM MON DOW command
# 0 9 * * *        daily at 9am
# */5 * * * *      every 5 minutes
# 30 8 * * 1-5     weekdays at 8:30am
```

## lunchy-go (macOS launchctl wrapper)

```bash
lunchy-go ls [pattern]            # List services
lunchy-go start redis            # Start (pattern match ok)
lunchy-go stop redis             # Stop
lunchy-go restart redis          # Restart
lunchy-go status redis           # Status
```

## Guidelines
- Prefer lunchy-go for managing macOS launchd plists; crontab for simple jobs.
- Always use full absolute paths inside cron jobs.
- Redirect output to a log: `command >> /tmp/job.log 2>&1`.
- Test the command manually before scheduling it.

