|
|
[Perlfect-search] perlfect-search digest, Vol 1 #84 - 3 msgs (fwd)
Taz Meister taz@lagmonster.org
Tue, 28 Nov 2000 14:22:54 -0800 (PST)
First of all, it doesn't appear that you are actually running a valid
cron file. This appears to be a shell script, but not a crontab entry.
A crontab file may look like:
-----------------------------------------------------
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
MAILTO=""
#
#minute hour mday month wday command
#
# Run the Indexer(every other day at 1:00AM)
0 1 1-31/2 * * /home/sites/site1/web/cgi-bin/perlfect/search/indexer.pl
-----------------------------------------------------
You have two choices.
1. You can tell cron not to email anything with this entry in your
crontab:
MAILTO=""
2. You can route the output to devnull by changing the entry to read:
0 1 1-31/2 * * /home/sites/site1/web/cgi-bin/perlfect/search/indexer.pl >
/dev/null
(or if you want nothing from the output in cases where some of the
crontab is emailed:)
0 1 1-31/2 * * /home/sites/site1/web/cgi-bin/perlfect/search/indexer.pl
2>&1 /dev/null
>Date: Tue, 28 Nov 2000 09:54:23 +0000
>To: perlfect-search@perlfect.com
>From: Alex Collins <a.collins@anglia.ac.uk>
>Subject: [Perlfect-search] ( Newbie ) Indexer Cron Job.
>Reply-To: perlfect-search@perlfect.com
>
>Hi there
>
>We have a rapidly developing web site, and to run the indexer manually
>is going to be a pain. I use a cron job to do it.
>
>The indexer runs fine but the noise in the logs is deafening. Cron also
>sends me a nice email telling me that it worked.
>
>How can I quieten things down a little.
>
>Perlfect search 3.09
>Cobalt Raq 4 ( LINUX )
>Perl 5.005
>
>Cron file.
>
>#!/bin/sh
>/home/sites/site1/web/cgi-bin/perlfect/search/indexer.pl
>
>Thanks.
>--
>Alex Collins. Rivermead Library IT Support Technician.
>Rivermead Library. Tel:01245 493131 X3722 Fax: X3145
>a.collins@anglia.ac.uk http://libweb.anglia.ac.uk
>This message has been ROT-13 Encrypted twice for Extra Security !
|
|