Combined: The Cron Job That Works When I Run It
maya has a nightly export in their crontab (sudo crontab -l -u maya). The script lives in /home/maya/bin, and they say it works when they run it. Yet /home/maya/exports stays empty: the job has never worked from cron. Cron runs the line with a minimal environment: PATH=/usr/bin:/bin, /bin/sh, and the user's home as the working directory.
This is a Pro problem
Pro unlocks every lab and quiz, all roadmaps and a full daily plan.
Unlock with ProTeaching or writing about this? Embed this lab on your page