Mailinglist Archive: opensuse (958 mails)

< Previous Next >
Re: [opensuse] Re: output from cron job
On 08/05/2019 14.11, Carlos E. R. wrote:
On 08/05/2019 13.45, Per Jessen wrote:
Andrei Borzenkov wrote:

Would you happen to know if the old behaviour of cronjobs/timers sending
an email to MAILTO is still supported?

cronjobs in 15.0, certainly. But I can test that.

It works just fine. I created a job with "crontab -e":


* * * * * /usr/share/backgrounds/tierra/generar

The script "generar" is missing, so it will fail.


2019-05-08T14:12:52.713612+02:00 Elesar crontab[23454]: (cer) BEGIN EDIT (cer)
2019-05-08T14:18:09.364997+02:00 Elesar crontab[23454]: (cer) REPLACE (cer)
2019-05-08T14:18:09.365306+02:00 Elesar crontab[23454]: (cer) END EDIT (cer)
2019-05-08T14:19:01.584676+02:00 Elesar systemd[1]: Started Session 3 of user
2019-05-08T14:19:01.587662+02:00 Elesar cron[23666]: pam_unix(crond:session):
session opened for user cer by (uid=0)
2019-05-08T14:19:01.588673+02:00 Elesar CRON[23667]: (cer) CMD
2019-05-08T14:19:01.607243+02:00 Elesar CRON[23666]: pam_unix(crond:session):
session closed for user cer

mail log:

2019-05-08T14:19:01.611961+02:00 Elesar postfix/pickup[21783]: 955AD43AAD:
uid=1000 from=<cer>
2019-05-08T14:19:01.621792+02:00 Elesar postfix/cleanup[23670]: 955AD43AAD:
2019-05-08T14:19:01.624053+02:00 Elesar postfix/qmgr[2322]: 955AD43AAD:
from=<cer@localhost>, size=850, nrcpt=1 (queue active)
2019-05-08T14:19:01.631806+02:00 Elesar postfix/local[23672]: 955AD43AAD:
to=<cer@localhost>, orig_to=<cer>, relay=local, delay=0.03,
delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
2019-05-08T14:19:01.632484+02:00 Elesar postfix/qmgr[2322]: 955AD43AAD: removed

mail itself:

Date: Wed, 8 May 2019 14:19:01 +0200 (CEST)
From: "(Cron Daemon)" <cer@localhost>
To: cer@localhost
Subject: Cron <cer@Elesar> /usr/share/backgrounds/tierra/generar

/bin/bash: /usr/share/backgrounds/tierra/generar: No such file or directory

I can try if mail to a different user works.

(Curio: the mail header says @localhost, not @Elesar, as I would prefer, but
the header says @Elesar)

Cheers / Saludos,

Carlos E. R.

(from openSUSE, Leap 15.1 x86_64 (ssd-test))

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread