Deutsch   English   Français   Italiano  
<t8mp3l$e8$1@rasp.pasdenom.info>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!pasdenom.info!.POSTED.2a01:e0a:21:ea80:d05a:3337:b6b8:2d5a!not-for-mail
From: yamo' <yamo@beurdin.invalid>
Newsgroups: fr.comp.usenet.serveurs
Subject: Re: grep sur news.notice et rotation de fichiers
Date: Sun, 19 Jun 2022 11:09:09 +0200
Organization: <https://pasdenom.info/news.html>
Message-ID: <t8mp3l$e8$1@rasp.pasdenom.info>
References: <t8mhfs$scq$1@ns507557.dodin.fr.nf>
Reply-To: yamo' <yamo@groumpf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 19 Jun 2022 09:09:09 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="stephane@usenet"; posting-host="2a01:e0a:21:ea80:d05a:3337:b6b8:2d5a";
	logging-data="456"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: flnews/1.1.0 (for GNU/Linux)
Cancel-Lock: sha256:opnlYGm2qqSu8UxCnKiHKkKDVi9bSENFO6w12QVyB/A=
Bytes: 1736
Lines: 27

Salut, 

jdd wrote:
> 
> MAILTO = processed
> 0 3 * * * grep -B1 "processed notice" /etc/news/logs/news.notice
> MAILTO news
> 0 3 * * * /usr/lib/news/bin/news.daily expireover delayrm lowmark
> (...)
> 
> pas de risque de collision? je peux décaler la deuxième d'une minute (1 
> 3 *...), mais est-ce suffisant?

Il suffirait d'une fois par jour lancer :

 zgrep -B1 "processed notice" /var/log/news/OLD/news.notice.1.gz

Mais je ferais plutôt :
 zgrep  nocem  /var/log/news/OLD/news.notice.1.gz\
| grep -E "processed|Articles cancelled"


Ça doit être possible de demander à logrotate d'envoyer
 le mail dès création du gz...


-- 
Stéphane