4.0 man -k not scanning all whatis files

Paul O'Neill pvo1478 at oce.orst.edu
Tue May 9 19:43:14 AEST 1989


A workaround:  Just append all the whatis files together.

__________ TESTED __________

cd /usr/local/man

[ rm whatis ]			( if it's a link to /usr/share/man/whatis )
[ catman -w -M /usr/local/man ] 		( make local's own whatis )

cp -ip /usr/share/man/whatis /usr/share/man/whatis- ( in case you blow it )
cat whatis >> /usr/share/man/whatis  		( append to standard whatis )
mv whatis whatis-     				( keep a copy )
ln -s /usr/share/man/whatis whatis		( link to standard whatis )

__________ UNTESTED __________

If you do "catman -w" regularily from a cron job, look at modifying 
/usr/lib/makewhatis to append them all together.  Remove and touch
/usr/share/man/whatis first.  (Cron job 1 minute earlier?)  Make all 
other whatis's links to /usr/share/man/whatis.  Change "> whatis" to
">> whatis" in /usr/lib/makewhatis.

Paul O'Neill                 pvo at oce.orst.edu
Coastal Imaging Lab
OSU--Oceanography
Corvallis, OR  97331         503-754-3251



More information about the Comp.sys.sun mailing list