Failed crontab for root on OSX


If you're running a cron job as root, and you're running a homebrew command, you'll need to add homebrew to the root user's path.

sudo su
cat ~/.bash_profile

Do you see this?

If not, run
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile

Test it

source ~/.bash_profile
which mycommand

About the Author

Hi. My name is Jeremiah John. I'm a sf/f writer and activist.

I just completed a dystopian science fiction novel. I run a website which I created that connects farms with churches, mosques, and synagogues to buy fresh vegetables directly and distribute them on a sliding scale to those in need.

In 2003, I spent six months in prison for civil disobedience while working to close the School of the Americas, converting to Christianity, as one does, while I was in the clink.