Mailinglist Archive: opensuse (4343 mails)

< Previous Next >
RE: [SLE] mail from server
  • From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
  • Date: Fri, 22 Nov 2002 03:36:34 +0100 (CET)
  • Message-id: <Pine.LNX.4.44.0211220325030.2216-100000@xxxxxxxxxxxxxxxx>

El 2002-11-21 a las 11:46, Sean M Lentner escribió:

> I see /etc/crontab listed below:
>
> sdo:/etc # cat crontab
> SHELL=/bin/sh
> PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
> MAILTO=root

Yes, that's correct. If there is mail to be sent by this cron job, it will
be sent to root.

> #
> # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
> #
> -*/15 * * * * root test -x /usr/lib/cron/run-crons &&
> /usr/lib/cron/run-crons >/dev/null 2>&1

This is the main task, it does everything. Have a look at that file, it is
very interesting. It has this:

# set to "true" to send a mail even if all scripts returned OK
SEND_MAIL_ON_NO_ERROR=false

So if the scripts run without error, nothing is reported, everything went
ok. What that script does, basically, is to execute every single script
contained in the /etc/cron.hourly/ dir once every hour; Those in the
cron.daily once a day, and so on. It means, that if you don't use your
computer for a day or two, on the 15,30,45, or 60 minute mark (the first
one that comes) it will run those scripts. Have a look are them, there are
many things done: logs are rotated, stale files deleted, old news messages
deleted, databases maintained, etc.


> But I guess I'm gauging my exspectation on what I get from other *NIX
> systems like my intranet server running Red Hat listed below:
>
>
>
>
> ################## LogWatch 2.6 Begin #####################

If you want logwatch, just install it, it is not installed by default.
Here, at home, it produces a 34 kbyte message daily... too much, I'll have
to adjust it.

--
Saludos
Carlos Robinson


< Previous Next >
References