root's crontab and mysqldump

Joseph Simmons josephdsimmons at gmail.com
Mon Feb 23 14:34:52 PST 2009


Adding /usr/local/bin gives the same result.

On Mon, Feb 23, 2009 at 1:00 PM, Steven Kreuzer <skreuzer at 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
>
>


More information about the freebsd-questions mailing list