[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Webglimpse Home]

Re: using makecron



On Wed, Sep 13, 2000 at 05:37:04PM -0500, Benner, Michael L wrote:
> Has anyone used this script to set up automated indexing of a site?  Any
> tips on how to use it properly?

You normally shouldn't run makecron manually. It's run by the
installer to create the wgreindex script for each archive.

First, make sure that you have a working wgreindex script for your
archive (cd to the directory, then run ./wgreindex -q). If it creates
the index correctly, edit your crontab file and put stuff similar to
the following in it:

--- snip ---

# use /bin/sh to run the cron commands
SHELL=/bin/sh

# mail results to me - this will tell me if the automatic reindexing fails
MAILTO=<your-e-mail-address>
 
# re-index archive daily at 4:15 a.m. Change to fit your needs.
15 4 * * * cd <archive-directory>; ./wgreindex -q


--- snip ---

If you don't have a crontab file for your account yet, put this in a
new file. You can run crontab -l to retrieve any entries that may
already be there and merge it with the new file.

After you have created or edited this file, run the command

crontab <filename>

This should do the trick.

Regards,
- Christian