From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 18:32:07 2009 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 B6FB4106566B for ; Sun, 4 Jan 2009 18:32:07 +0000 (UTC) (envelope-from timothyk@wallnet.com) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by mx1.freebsd.org (Postfix) with ESMTP id 8AC6D8FC08 for ; Sun, 4 Jan 2009 18:32:07 +0000 (UTC) (envelope-from timothyk@wallnet.com) Received: from tim-kellerss-macbook-pro.local (ool-18bb798e.dyn.optonline.net [24.187.121.142]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0KCY00M1LM5I7760@mta1.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Sun, 04 Jan 2009 13:32:06 -0500 (EST) Date: Sun, 04 Jan 2009 13:32:06 -0500 From: Tim Kellers In-reply-to: <87k59bhury.fsf@kobe.laptop> To: Giorgos Keramidas Message-id: <496100A6.8090200@wallnet.com> MIME-version: 1.0 References: <4960E864.5060104@wallnet.com> <87k59bhury.fsf@kobe.laptop> User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd general questions Subject: Re: PATH braincramp 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: Sun, 04 Jan 2009 18:32:08 -0000 Giorgos Keramidas wrote: > On Sun, 04 Jan 2009 11:48:36 -0500, Tim Kellers 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" > > > > Pass the Pointy Hat over so I can strap it on twice. I had tried "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" but, yes I had the $ in front of PATH. Wow, what a braincramp. I feel like a dope, but a dope that has his backup crons running, now. Giorgios, THANK YOU!