Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2008 10:28:22 +0100
From:      "James Seward" <jamesoff@gmail.com>
To:        mcoyles@horbury.wakefield.sch.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Script works fine from CLI, but not when Cron'd
Message-ID:  <720051dc0810070228o68f0a67bx8cab7869ace8269f@mail.gmail.com>
In-Reply-To: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk>
References:  <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles
<mcoyles@horbury.wakefield.sch.uk> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?720051dc0810070228o68f0a67bx8cab7869ace8269f>