[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus-agent-fetch in batch mode in a cron job

From: W. Greenhouse
Subject: Re: gnus-agent-fetch in batch mode in a cron job
Date: Wed, 20 Feb 2013 16:39:01 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi Julien,

Julien Cubizolles <> writes:

> The subject says it all. I'm fetching news through emacs in batch mode
> in a cron job but I can't figure out how to get the possible errors
> through the mails sent by cron.
> In batch mode emacs output everything that should go to the *Messages*
> buffer to stderr so cron sends an email each time the job is run, even
> without any error. I don't want to receive an email when there is no
> problem. Is there a way to get emacs to send only the error messages to
> stderrĀ ?
> Julien.

Yes, this should be a matter of shell redirection.  Cron actually sends
both stdout and stderr to email, so if you only want stderr, then you
should redirect stdout to /dev/null.  There isn't a -quiet option or
similar for Emacs in batch mode, so it's all up to the shell.

GnuPG/PGP key: 0D2D3F9E

reply via email to

[Prev in Thread] Current Thread [Next in Thread]