Lewati ke konten
TakoAPI
Kembali ke skill

cron-scheduling

oleh gitgoodordietrying

Calendar & Scheduling
6.4kUnduhan dilaporkan oleh clawskills.sh
4Bintang
0Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

Schedule and manage recurring tasks with cron.

Deskripsi

Apa yang Dilakukan Skill Ini

Covers cron syntax, crontab management, systemd timer units, one-off scheduling with `at`, timezone handling, and job failure debugging. Works on Linux and macOS systems with `crontab`, `systemctl`, or `at` available.

Systemd timers provide journald logging, missed-run catchup, and resource limits that cron lacks, and this skill covers both so you can choose the right tool for the context.

Kapan Menggunakannya

  • Scheduling nightly database backups
  • Setting up a weekly log cleanup job
  • Debugging why a cron job silently stopped running
  • Migrating cron jobs to systemd timers
  • Running a deploy script once at a specific future time

Contoh Alur Kerja

INPUT

User asks: set up a daily backup job at 2 AM using systemd timers

AGENT
  1. 1

    Creates /etc/systemd/system/backup.service with Type=oneshot and ExecStart pointing to the backup script

  2. 2

    Creates /etc/systemd/system/backup.timer with OnCalendar=*-*-* 02:00:00 and Persistent=true

  3. 3

    Runs systemctl daemon-reload and systemctl enable --now backup.timer

  4. 4

    Verifies the timer appears in systemctl list-timers output

  5. 5

    Confirms next trigger time with systemd-analyze calendar "*-*-* 02:00:00"

OUTPUT

Timer is active and scheduled; next run shown with exact trigger timestamp

Instalasi

clawhub install gitgoodordietrying/cron-scheduling

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan