Mailinglist Archive: opensuse (1194 mails)

< Previous Next >
Re: [opensuse] How do I get system mail?
  • From: Bob Williams <linux@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 1 Jan 2010 13:54:00 +0000
  • Message-id: <201001011354.00904.linux@xxxxxxxxxxxxxxxxxxxxx>
On Friday 01 Jan 2010 12:10:50 Carlos E. R. wrote:
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 :-)

My mistake. I have the same as you quote above in /etc/crontab. My previous
quote was taken from what is displayed in System Settings > Advanced > Task
Scheduler.

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups