From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 09:28:24 2008 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 DAC3B10656CA for ; Tue, 7 Oct 2008 09:28:23 +0000 (UTC) (envelope-from jamesoff@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 898AA8FC4B for ; Tue, 7 Oct 2008 09:28:23 +0000 (UTC) (envelope-from jamesoff@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so627743wra.27 for ; Tue, 07 Oct 2008 02:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YUcaFELJxyDSeGmlI4gjN1kj4a3YRNaemrhWAU6Z+HQ=; b=OMmWnvlKmgsR8jIGxdilQgNxqAxRD8fqotNo4v9Fb3R9XN031GTGUU/eatktTt7GRG Zo4h6q8kDyEfRGqvEPRTcfP5+dinh6P5j6GNygVFtV5p3NgPL9OronePbicjkc1O4rDU g8dJCbvg8uPW5HDD3vxZ8WOO/IhPGA2QyvOJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ixqDDyDzENR5+DpJlFgfzfS/4aQBBP0XrgblTGRKpGqDYdP82nbvXEREdLkVbX5ZOs EVMiK/TZ0kGdZL4BnvaHAmiwOC15pWvMq04McHxoGmMsS/VQl+Rz69PnNvxyHeW7ibII xWz/xdmYdRDfbmp3euGMxoxeOHYluiGVYYDiU= Received: by 10.150.12.3 with SMTP id 3mr9483194ybl.16.1223371702280; Tue, 07 Oct 2008 02:28:22 -0700 (PDT) Received: by 10.65.132.10 with HTTP; Tue, 7 Oct 2008 02:28:22 -0700 (PDT) Message-ID: <720051dc0810070228o68f0a67bx8cab7869ace8269f@mail.gmail.com> Date: Tue, 7 Oct 2008 10:28:22 +0100 From: "James Seward" To: mcoyles@horbury.wakefield.sch.uk In-Reply-To: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Script works fine from CLI, but not when Cron'd 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: Tue, 07 Oct 2008 09:28:28 -0000 On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? Things started from cron inherit a different PATH. Either add the appropriate directories to PATH or specify the full path to mysqldump. -- /JMS