Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Sonny on March 23, 2003, 10:25:27 PM

Title: run cron part 2
Post by: Sonny on March 23, 2003, 10:25:27 PM
hi!

I have now figured out how to set up and run a cron job every 5 minuts (an update of web stats.)....
but i get an e-mail every 5 minuts now saying what the cron job did
---- snip of mail ----
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:

Update for config "/home/e-smith/files/ibays/awstats/cgi-bin/awstats.www.domain.dk.conf"
With data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Phase 2 : Now process new records (Flush history on disk after 16000 uniques)...
Lines in file: 6742
Found 6305 dropped records,
Found 3 corrupted records,
Found 417 old records,
Found 17 new qualifed records.
--- end of mail ----

Is it posibil to just delete this messag, so i wont get around 264 mail's pr. 24 houers..... ??
Title: Re: run cron part 2
Post by: Bill Talcott on March 24, 2003, 07:10:14 PM
Edit the script so that the command doesn't output anything. You'll get emails containing anything that a script displays...  Add " > /dev/null" at the end of the command.