20 Jan
2005
20 Jan
'05
15:17
Carlos wrote regarding 'Re: [SLE] quiet cron' on Tue, Jan 18 at 13:26:
The Tuesday 2005-01-18 at 19:08 +0200, Hans du Plooy wrote:
I have a cron script that runs every - calls a program that analyse logs and crate graphs with the info. The way I set it up is simply to make a script that call the program, and stick it in the /etc/cron.hourly directory. Now I get a mail every hour. How do I get it not to send the mail? I know how to do this from the crontab file, but not if I use the cron.xyz directories directly.
I think you will be emailed only if the otuput code (errorlevel?) of your script is not 0.
Or if anything's emitted on stdout/stderr, IIRC (depending on the cron daemon) --Danny