πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #910

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

#910
From: Julien Cubizolles
Date: Wed, 13 Feb 2013 22:08
11 lines
2765 bytes
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.
Technical Details
Message-ID: <mailman.19865.1360793312.855.info-gnus-english@gnu.org>
Path: arc1-ca.pugleaf.net!ov8ni12646pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin-spool!goblin2!goblin.stu.neva.ru!ecngs!feeder2.ecngs.de!novso.com!news.he.net!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 99bd902dcd,844227d5ecc7f259,start
X-Google-Attributes: gid99bd902dcd,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,UTF8
X-Received: by 10.66.75.167 with SMTP id d7mr4380713paw.30.1361435190341;
        Thu, 21 Feb 2013 00:26:30 -0800 (PST)
Path: arc1-ca.pugleaf.net!ov8ni12646pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin-spool!goblin2!goblin.stu.neva.ru!ecngs!feeder2.ecngs.de!novso.com!news.he.net!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!not-for-mail
From: Julien Cubizolles <j.cubizolles@free.fr>
Newsgroups: gnu.emacs.gnus
Subject: gnus-agent-fetch in batch mode in a cron job
Date: Wed, 13 Feb 2013 23:08:12 +0100
Lines: 13
Approved: info-gnus-english@gnu.org
Message-ID: <mailman.19865.1360793312.855.info-gnus-english@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1360793313 21759 208.118.235.17 (13 Feb 2013 22:08:33 GMT)
X-Complaints-To: action@cs.stanford.edu
To: info-gnus-english@gnu.org
Envelope-to: info-gnus-english@gnu.org
X-Injected-Via-Gmane: http://gmane.org/
X-Gmane-NNTP-Posting-Host: gas45-3-82-244-252-119.fbx.proxad.net
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)
Cancel-Lock: sha1:Pv7tdXns+f4RhoNM9aIsMaL5UTQ=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 80.91.229.3
X-BeenThere: info-gnus-english@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Announcements and discussions for GNUS,
 the GNU Emacs Usenet newsreader \(in English\)"
 <info-gnus-english.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/info-gnus-english>
List-Post: <mailto:info-gnus-english@gnu.org>
List-Help: <mailto:info-gnus-english-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=subscribe>
Bytes: 2379
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit