From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 19:27:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33FD5106564A for ; Mon, 23 Feb 2009 19:27:28 +0000 (UTC) (envelope-from steven@hudson-trading.com) Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mx1.freebsd.org (Postfix) with SMTP id D2B1F8FC18 for ; Mon, 23 Feb 2009 19:27:27 +0000 (UTC) (envelope-from steven@hudson-trading.com) Received: from source ([74.125.92.25]) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKSaL4n8B/GWli057JmqxTPV3FdxssphGC@postini.com; Mon, 23 Feb 2009 11:27:28 PST Received: by qw-out-2122.google.com with SMTP id 8so603749qwh.9 for ; Mon, 23 Feb 2009 11:27:26 -0800 (PST) Received: by 10.224.2.74 with SMTP id 10mr6497889qai.257.1235415605998; Mon, 23 Feb 2009 11:00:05 -0800 (PST) Received: from ?10.2.200.231? ([209.249.190.8]) by mx.google.com with ESMTPS id 8sm137352qwj.56.2009.02.23.11.00.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 11:00:05 -0800 (PST) Sender: Steven Kreuzer Message-Id: From: Steven Kreuzer To: Joseph Simmons In-Reply-To: <1ba9cd9a0902231026t797dd129t2b54e86bb874bbf0@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 23 Feb 2009 14:00:03 -0500 References: <1ba9cd9a0902230937xc817f3dxe26a54b734d5f8ef@mail.gmail.com> <1ba9cd9a0902231026t797dd129t2b54e86bb874bbf0@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) Cc: Christopher Umina , freebsd-questions@freebsd.org, Peter Boosten Subject: Re: root's crontab and mysqldump X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 19:27:28 -0000 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