PATH braincramp

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Jan 4 08:59:40 PST 2009


On Sun, 04 Jan 2009 11:48:36 -0500, Tim Kellers <timothyk at 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"



More information about the freebsd-questions mailing list