Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We need /usr/local/bin in cron's path! this way: didnt work for us.

share|improve this question
There are many variants of cron, and sometimes more than one within a given distribution. Can you provide more details (distribution, where you're adding the cron that's failing, etc.)? – BMDan Jul 16 '10 at 12:37

If you are using Red Hat Enterprise Linux or derivative distributions of it, you can do it by following the "Configuring Cron Tasks" section of Red Hat's manual for RHEL. You will be editing /etc/crontab and modifying the PATH variable to add /usr/local/bin.

share|improve this answer
does not work on ubuntu, even after restarting cron (only works when used directly in the crontab of the user) – grosser Jul 19 '10 at 7:02
What user is running the cron job? Can you just updated the PATH variable in the crontab of the user running it? According to, "Depending on the commands being run, you may need to expand the root users PATH variable" by updating PATH variable at the top of the root user's crontab file. Additionally,… indicates that /etc/crontab is a system-wide crontab. I'm not much of an Ubuntu user though, so if that does not help, I apologize. – runlevelsix Jul 19 '10 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.