Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2008 12:20:33 +0200
From:      =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-ports@pp.dyndns.biz>
To:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: Trying to "make index" in a crontab job
Message-ID:  <48C8F0F1.8040204@pp.dyndns.biz>
In-Reply-To: <20080911012951.GA23787@rwpc12.mby.riverwillow.net.au>
References:  <48C83139.7080303@pp.dyndns.biz> <20080911012951.GA23787@rwpc12.mby.riverwillow.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
John Marshall wrote:
> On Wed, 10 Sep 2008, 22:42 +0200, Morgan Wesstr?m wrote:
>> # which pkg_info
>> /usr/sbin/pkg_info
>>
>> When I try to use crontab to "make index" in /usr/ports I end up with this:
>> Generating INDEX-7 - please wait..pkg_info: not found
> 
> See crontab(5). cron(8) doesn't give you /usr/sbin in PATH by default.
> 

That was the problem. I simply assumed that since this is root's crontab 
that it also had root's complete environment available. I have added 
root's path to the crontab now. Thanks everyone for your help.
/M



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