Date: Mon, 23 Feb 2009 16:34:50 -0600 From: Joseph Simmons <josephdsimmons@gmail.com> To: Steven Kreuzer <skreuzer@exit2shell.com>, freebsd-questions@freebsd.org Subject: Re: root's crontab and mysqldump Message-ID: <1ba9cd9a0902231434u53999d89oac089d39a82d6b9e@mail.gmail.com> In-Reply-To: <D5B72C56-7670-4ED0-9A54-C4F83E45254B@exit2shell.com> References: <1ba9cd9a0902230937xc817f3dxe26a54b734d5f8ef@mail.gmail.com> <BC19BF4C-9A21-45F0-B140-0552761941E7@easymac.org> <1ba9cd9a0902231026t797dd129t2b54e86bb874bbf0@mail.gmail.com> <D5B72C56-7670-4ED0-9A54-C4F83E45254B@exit2shell.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Adding /usr/local/bin gives the same result. On Mon, Feb 23, 2009 at 1:00 PM, Steven Kreuzer <skreuzer@exit2shell.com>wrote: > > 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?1ba9cd9a0902231434u53999d89oac089d39a82d6b9e>