Ravi Sir's Cards › AWS
Works by hand, fails in cron?
This interview card answers: Works by hand, fails in cron? Cron has a tiny PATH. No ~/.bashrc, wrong folder. The card’s suggested next step is to use full paths and log.
Read card text
What this card says
What it is
Cron has a tiny PATH.
Why it matters
No ~/.bashrc, wrong folder.
How / example
Use full paths and log.
0 2 * * * /opt/x.sh >> /var/log/x.log 2>&1