Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jan 2009 18:59:29 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Tim Kellers <timothyk@wallnet.com>
Cc:        freebsd general questions <freebsd-questions@freebsd.org>
Subject:   Re: PATH braincramp
Message-ID:  <87k59bhury.fsf@kobe.laptop>
In-Reply-To: <4960E864.5060104@wallnet.com> (Tim Kellers's message of "Sun, 04 Jan 2009 11:48:36 -0500")
References:  <4960E864.5060104@wallnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 04 Jan 2009 11:48:36 -0500, Tim Kellers <timothyk@wallnet.com> wrote:
> I'm having a tussle with one of those things I've done a zillion times,
> but now I can't fathom what the heck is wrong.
>
> When I run flexbackup from a cron job (as root) , the following error is
> returned by e-mail to root:
>
> Errors:
> mbuffer not found in $PATH
> dump not found in $PATH
> restore not found in $PATH
>
> $PATH is set in root's  crontab: $PATH = "/sbin /bin /usr/sbin /usr/bin
> /usr/games /usr/local/sbin /usr/local/bin"

You are not using `$PATH = xxx yyy' right?

Evaluating the variable to extract its _value_ needs a dollar sign, but
setting it should not use a dollar sign and the value elements should be
separated by ':' like this:

    PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"




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