Script works fine from CLI, but not when Cron'd
James Seward
jamesoff at gmail.com
Tue Oct 7 09:28:28 UTC 2008
On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles
<mcoyles at 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
More information about the freebsd-questions
mailing list