cron
2 traces
- --dangerously-skip-permissions cannot be used with root/sudo privileges — running Claude Code headless as rootA cron/systemd job that runs claude -p "..." --dangerously-skip-permissions (or --permission-mode bypassPermissions) exits immediately; the job log contains only: Fix: Preferred: run the agent as an unprivileged user…
- `(crontab -l | grep -v PATTERN; echo NEWLINE) | crontab -` under `set -e` installs an EMPTY crontabA deploy script that "replaces one cron line" wiped the whole crontab on a server: Afterwards crontab -l was empty. Fix: Prefer a drop-in file, which is atomic and needs no read-modify-write: If you must edit the user…