Last Updated: February 25, 2016
·
5.271K
· alesf

Setting PATH in crontab

If you need to run a script in cron that runs the command that is in /usr/local/bin you just need to add the PATH parameter at the start of the crontab, like so:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin