Skip to main content

cron-block-generation-gotchas

Guide for writing or debugging code that programmatically generates cron blocks (crontab entries). Use when: (1) a cron job runs fine by hand but silently never fires from cron, (2) writing an `enable`/`install`-style command that appends entries to a user's crontab, (3) cron jobs referring to paths under `~/Documents/...` or `~/Library/...` that contain spaces, (4) cron jobs invoking tools installed to `~/.local/bin`, `~/.cargo/bin`, `~/go/bin`, or a uv/pipx/npm user-install dir, (5) debugging "works in my shell, broken from cron" with no error output. Covers the two interacting gotchas — unquoted-space shell splitting and cron's stripped $PATH — plus how to reproduce cron's environment locally with `env -i` and how to generate a correct block with `shlex.quote()` and `shutil.which()`.

Aller à l'installation

Informations de source

Dépôt
cajias/claude-skills
Dernière activité de la source
20 juillet 2026 à 07:29
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.