Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2008 22:42:33 +0200
From:      =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-ports@pp.dyndns.biz>
To:        freebsd-ports@freebsd.org
Subject:   Trying to "make index" in a crontab job
Message-ID:  <48C83139.7080303@pp.dyndns.biz>

next in thread | raw e-mail | index | archive | help
Hi list.


# uname -a
FreeBSD gatekeeper.pp.dyndns.biz 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 
#0: Thu Sep  4 10:58:01 CEST 2008 
pp@gatekeeper.pp.dyndns.biz:/usr/obj/usr/src/sys/MYKERNEL  amd64

# 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
pkg_info: not found
pkg_info: not found
pkg_info: not found
<snip>
  Done.

I've tried to put the command directly in the crontab entry and also in 
a separate shell script but the result is the same. Running "make index" 
manually works fine and doesn't show those "pkg_info" messages. Does 
"make index" need another shell than /bin/sh to work or isn't the path 
working or what am I doing wrong? Is there a preferred way to update the 
ports source tree and create the index through crontab?

Thanks
Morgan



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