Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 14:00:03 -0500
From:      Steven Kreuzer <skreuzer@exit2shell.com>
To:        Joseph Simmons <josephdsimmons@gmail.com>
Cc:        Christopher Umina <chris@easymac.org>, freebsd-questions@freebsd.org, Peter Boosten <peter@boosten.org>
Subject:   Re: root's crontab and mysqldump
Message-ID:  <D5B72C56-7670-4ED0-9A54-C4F83E45254B@exit2shell.com>
In-Reply-To: <1ba9cd9a0902231026t797dd129t2b54e86bb874bbf0@mail.gmail.com>
References:  <1ba9cd9a0902230937xc817f3dxe26a54b734d5f8ef@mail.gmail.com> <BC19BF4C-9A21-45F0-B140-0552761941E7@easymac.org> <1ba9cd9a0902231026t797dd129t2b54e86bb874bbf0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Feb 23, 2009, at 1:26 PM, Joseph Simmons wrote:

> I added the full path and the result didn't change. I can still see it
> running in the log but the script doesn't appear to be doing anything.
>
> I have the following variables set in the root's crontab
>
> SHELL=/usr/local/bin/bash
> PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin

Add /usr/local/bin to PATH because that is where the mysqldump binary  
is.
Also, you don't need /etc in your path, pretty much ever because that  
directory should never have executable programs in it.

--
Steven Kreuzer
http://www.exit2shell.com/~skreuzer




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D5B72C56-7670-4ED0-9A54-C4F83E45254B>