Why your `cron` job runs in a different environment than your shell — and how to make it stop biting
You write a script. You run it from your shell — it works perfectly. You add it to crontab to run hourly — it silently fails. The script’s still there, the cron’s firing on schedule, but the actual command is …