Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Anacron job output/email

47 views
Skip to first unread message

pa...@quillandmouse.com

unread,
Oct 4, 2022, 9:20:05 AM10/4/22
to
Folks:

I have a Raspberry Pi (Raspberry Pi OS = Debian version 11.5) which
runs a backup daily via a file called /etc/cron.daily/backup. This file
generates copious output, which should get emailed to root. The backup
script ran this morning at 06:25, as predicted. I know this because it
created a timestamp file at the end of its backup, and that file
indicates it ran on schedule. However, there is no email containing its
output. I checked the contents of /var/mail, and there's no output.
FWIW, when run manually, it generates the aforementioned output.

I haven't tampered with anacron other than to add the script to the
directory above. Can anyone give me a clue why the output of the script
would fail to generate an email for me?

Paul

--
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster

debia...@howorth.org.uk

unread,
Oct 4, 2022, 10:30:07 AM10/4/22
to
> Folks:
>
> I have a Raspberry Pi (Raspberry Pi OS = Debian version 11.5) which
> runs a backup daily via a file called /etc/cron.daily/backup. This
> file generates copious output, which should get emailed to root. The
> backup script ran this morning at 06:25, as predicted. I know this
> because it created a timestamp file at the end of its backup, and
> that file indicates it ran on schedule. However, there is no email
> containing its output. I checked the contents of /var/mail, and
> there's no output. FWIW, when run manually, it generates the
> aforementioned output.
>
> I haven't tampered with anacron other than to add the script to the
> directory above. Can anyone give me a clue why the output of the
> script would fail to generate an email for me?

Have you installed mail on the pi? It's not there by default. You may
find messages in the journal about discarding the output if so, or
which may indicate another cause if not.

> Paul

Charles Curley

unread,
Oct 4, 2022, 10:30:07 AM10/4/22
to
On Tue, 4 Oct 2022 09:11:59 -0400
<pa...@quillandmouse.com> wrote:

> Can anyone give me a clue why the output of the script
> would fail to generate an email for me?

Do you have a mail transport agent (MTA) such as postfix or exim
installed?

--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

pa...@quillandmouse.com

unread,
Oct 4, 2022, 11:30:06 AM10/4/22
to
See my reply to a previous poster. Yes, Exim4 is installed and
configured. And works.

pa...@quillandmouse.com

unread,
Oct 4, 2022, 11:30:06 AM10/4/22
to
On Tue, 4 Oct 2022 08:21:20 -0600
Charles Curley <charle...@charlescurley.com> wrote:

> On Tue, 4 Oct 2022 09:11:59 -0400
> <pa...@quillandmouse.com> wrote:
>
> > Can anyone give me a clue why the output of the script
> > would fail to generate an email for me?
>
> Do you have a mail transport agent (MTA) such as postfix or exim
> installed?
>

Yes, Exim4, properly configured. As I mentioned, the email which should
have been generated did finally arrive, 3 hours later. Go figure.

David Wright

unread,
Oct 4, 2022, 12:10:06 PM10/4/22
to
On Tue 04 Oct 2022 at 11:25:22 (-0400), pa...@quillandmouse.com wrote:
> On Tue, 4 Oct 2022 08:21:20 -0600 Charles Curley wrote:
> > On Tue, 4 Oct 2022 09:11:59 -0400 <pa...@quillandmouse.com> wrote:
> >
> > > Can anyone give me a clue why the output of the script
> > > would fail to generate an email for me?
> >
> > Do you have a mail transport agent (MTA) such as postfix or exim
> > installed?
>
> Yes, Exim4, properly configured. As I mentioned,

I don't think we saw that one.

> the email which should
> have been generated did finally arrive, 3 hours later. Go figure.

Then the answer should be in /var/log/exim4/mainlog*

Cheers,
David.

Tixy

unread,
Oct 4, 2022, 12:10:06 PM10/4/22
to
On Tue, 2022-10-04 at 11:25 -0400, pa...@quillandmouse.com wrote:
> Yes, Exim4, properly configured. As I mentioned, the email which should
> have been generated did finally arrive, 3 hours later. Go figure.

Looking at the email headers would help you figure out where on the
delivery route the delay was. As could looking in
/var/log/exim4/mainlog in the Pi.

--
Tixy

Charles Curley

unread,
Oct 4, 2022, 12:30:07 PM10/4/22
to
On Tue, 4 Oct 2022 11:25:22 -0400
<pa...@quillandmouse.com> wrote:

> As I mentioned, the email which should
> have been generated did finally arrive, 3 hours later.

Actually, no, you didn't mention it in your original post.
0 new messages