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
Written by Aleš Farčnik
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Os x
Authors
mikker
63.03K
themichael'tips
28.64K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#