root's crontab and mysqldump
Steven Kreuzer
skreuzer at exit2shell.com
Mon Feb 23 11:27:28 PST 2009
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
More information about the freebsd-questions
mailing list