Tag Info

New answers tagged

0

Directories like /usr/local/bin and /usr/local/sbin are not by default in cronjobs $PATH. But you can redefine $PATH in crontab, simply put something like this before any defined cronjobs PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


0

The $PATH environment variable under cron is limited, and will include neither /usr/local/bin nor /home/foobar/dir. The correct answer is, as you found, to fully qualify the path to the script in your crontab; it leads to less surprises.



Top 50 recent answers are included