Deutsch   English   Français   Italiano  
<t8chsd$k5o$1@shakotay.alphanet.ch>

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

Path: ...!news.nobody.at!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: Marc SCHAEFER <schaefer@alphanet.ch>
Newsgroups: fr.comp.usenet.serveurs
Subject: Re: poster avec cron
Date: Wed, 15 Jun 2022 12:04:29 -0000 (UTC)
Organization: Posted through ALPHANET
Message-ID: <t8chsd$k5o$1@shakotay.alphanet.ch>
References: <t89mc5$9v4$1@ns507557.dodin.fr.nf> <t89na2$6nn$2@shakotay.alphanet.ch> <t89qpq$bbu$1@ns507557.dodin.fr.nf> <t89re6$rt3$1@shakotay.alphanet.ch> <t8a7vk$f1i$2@ns507557.dodin.fr.nf> <t8bthb$goa$5@shakotay.alphanet.ch> <t8c4tj$2q8$1@ns507557.dodin.fr.nf>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 15 Jun 2022 12:04:29 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="schaefer";
	logging-data="20664"; mail-complaints-to="usenet@alphanet.ch"; posting-host="634ce6c9682d817d72f6177875e2bb4f.nnrp.alphanet.ch"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-20-amd64 (x86_64))
Cancel-Lock: sha256:GKgH57D+OsK4/Vbo+LHQs8qSXb+XiyZfipB3VaM3EeE= sha256:PjX9LCxPtGE4ukKM3JxMI24sFpDFuIJM19OiT6/VrsE=
Bytes: 1859
Lines: 15

jdd <jdd@dodin.org> wrote:
> je ne suis pas sur d'être clair. Si je peux créer un message (avec bash, 
> pour faire simple), je pourrai appeler un script avec cron

Tu trouves un exemple ici:

   https://git.alphanet.ch/gitweb/?p=alphanet-faq;a=blob;f=scripts/tests/cancel-lock/test-article.sh

il utilise le template:

   https://git.alphanet.ch/gitweb/?p=alphanet-faq;a=blob;f=scripts/tests/cancel-lock/templates/test-article

Tu peux enlever la partie cancel-lock et tee et juste piper le sed à
inews -h.

J'ai fait un exemple plus simple dans ce thread.