Latest

One small part per post: a probe, a daily job, a trick, a trap that cost an afternoon.

All posts

claude -p exits 0 when the login is dead

A scheduled Claude Code job ran green for eleven days and produced nothing. The login had expired, the command printed one line saying so and returned success. Wrappers have to read the output, and headless machines need a token of their own.

Christian Drexler

launchd, not cron, on a Mac

Scheduled jobs on a Mac belong in a launchd plist: they survive reboots, run as your user, and log where you can find them. One minimal plist, the commands to load it, and the privacy gotcha that makes a job under Documents fail with Operation not permitted.

Christian Drexler

kickstart does not reload your plist

launchctl kickstart -k restarts a launchd job with the configuration it already has in memory. Edit the plist, kickstart, and the service comes back running the old settings while looking freshly restarted. How it bites and the two lines that fix it.

Christian Drexler