Trying to "make index" in a crontab job
Morgan Wesström
freebsd-ports at pp.dyndns.biz
Thu Sep 11 10:20:36 UTC 2008
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
More information about the freebsd-ports
mailing list