Trying to "make index" in a crontab job

Morgan Wesström freebsd-ports at pp.dyndns.biz
Wed Sep 10 20:42:50 UTC 2008


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 at 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


More information about the freebsd-ports mailing list