Mailinglist Archive: opensuse (1194 mails)

< Previous Next >
Re: [opensuse] How do I get system mail?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Fri, 1 Jan 2010 13:10:50 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.1001011258390.32579@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Friday, 2010-01-01 at 11:50 -0000, Bob Williams wrote:

Hi Per and Carlos,

Happy New Year :)

Same to you.

I'm watching on TV the Vienna philarmonica new year concert, but I missed the first hour. I always think it starts at twelve, but it does at 11:00 +0100. Almost every year I'm catched this way. Sigh.


On Friday 01 Jan 2010 11:25:16 Carlos E. R. wrote:
On Friday, 2010-01-01 at 11:34 +0100, Per Jessen wrote:

you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx)
to stop getting those mails. What is the purpose of the cron job?

My guess it is just a forgotten test job :-)

I run several rsnapshot backup jobs as root, but I think the culprit is:

test -x /usr/lib/cron/run-crons >/dev/null 2>&1

which checks scripts in cron.hourly, cron.daily etc. on the following
schedule:

*/15 * * * *

That would be /etc/crontab - both my 11.0 and 11.2 have the exact same file:

- ----------
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=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
- -------------

Syntax is in crontab(5).

Every 15 minutes user root will test if /usr/lib/cron/run-crons is executable and run it. Your line, if what you posted is what you have, is incorrect, it doesn't have the execute part; thus you are getting the mail, because by default a mail is only sent on errors, and this is an error.

That's my sleepy guess at this early time of the year :-)


- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAks95lEACgkQtTMYHG2NR9WcqgCfdSGOPx7lGFvIharU+1VkBU8K
nAkAmwUWUhWLbG7F6SUqIBluRZpP4Ss4
=8g8U
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >