Skip to main content

cron

Schedule reminders, recurring tasks, and one-time jobs using system crontab.

소스 정보

저장소
HKUDS/OpenOPC
최근 소스 활동
2026년 7월 1일 09:56
감지된 SKILL.md 언어
영어
스타
1,848
포크
342

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cron
description
Schedule reminders, recurring tasks, and one-time jobs using system crontab.
# Cron Schedule tasks using the system crontab via `shell_exec`. ## List current cron jobs ```bash crontab -l ``` ## Add a recurring job ```bash (crontab -l 2>/dev/null; echo "*/20 * * * * echo 'Time to take a break!' >> /tmp/opc-reminders.log") | crontab - ``` ## Common schedules | Schedule | Cron expression | |----------|----------------| | Every 20 minutes | `*/20 * * * *` | | Every hour | `0 * * * *` | | Every day at 8am | `0 8 * * *` | | Weekdays at 5pm | `0 17 * * 1-5` | | Every Monday at 9am | `0 9 * * 1` | ## One-time scheduled task Use `at` for one-time jobs: ```bash echo "echo 'Meeting reminder' >> /tmp/opc-reminders.log" | at 14:30 ``` Or schedule with a specific date: ```bash echo "echo 'Deadline reminder' >> /tmp/opc-reminders.log" | at 10:00 2026-03-20 ``` ## Remove a job Edit the crontab directly: ```bash crontab -e ``` Or filter out a specific job: ```bash crontab -l | grep -v 'pattern-to-remove' | crontab - ``` ## Notes - Use full paths in cron commands (cron has a minimal `$PATH`). - Redirect output to a log file or `/dev/null` to avoid mail noise. - Check `at` availability: `which at` (install with `apt install at` if missing).
GitHub에서 보기