Article View: news.software.readers
Article #206740Re: [leafnode] Instant Upload
From: Blinky the Shark
Date: Fri, 28 Sep 2007 10:46
Date: Fri, 28 Sep 2007 10:46
80 lines
4778 bytes
4778 bytes
Peter J Ross wrote:
> In news.software.readers on 28 Sep 2007 09:56:01 GMT, Blinky the Shark
><no.spam@box.invalid> wrote:
>
>> Peter J Ross wrote:
>>> In news.software.readers on Fri, 28 Sep 2007 00:25:15 +0200, Robert
>>> Spanjaard <spamtrap@arumes.com> wrote:
>>>
>>>> On Thu, 27 Sep 2007 21:21:53 +0000, Blinky the Shark wrote:
>>>>
>>>>> Is there a way to get leafnode to upload a post when I send it from my
>>>>> client, so it doesn't have to wait until the next leafnode cron job?
>>>>
>>>> If it's possible, you should edit inetd.conf and replace the execution of
>>>> leafnode by a script which executes leafnode followed by fetchnews -P
>>>> (=post only). But I'm not sure if inetd allows the use of scripts.
>
> Looking at this again, I suspect that it may not work, since
> "fetchnews -P" will attempt to start leafnode, which has been replaced
> in inetd.conf by a script.
>
>>>> If it doesn't work, you could setup a new cron job which executes
>>>> fetchnews -P every 5 minutes, for example.
>
> ... but not when a full fetchnews is scheduled to run, or you'll get
> harmless but annoying error messages.
>
>>> Another possible solution would be a shell script that looks at
>>> /var/spool/news/out.going/ and runs fetchnews -P if the directory
>>> isn't empty and fetchnews isn't already running. Run the script with
>>> cron every minute or every 30 seconds.
>>
>> And thank you, too, Peter. My nature makes me want to do whichever of
>> those more efficient (assuming same frequency). Seems offhand like that
>> would be yours, in that it doesn't involve fetchnews unless there's
>> reason. Comments?
>
> Frequency affects efficiency. There's a limit to how often you can run
> fetchnews without bumping into a fetchnews that's already running,
> which is why I suggest checking whether there are any articles waiting
> to be posted before doing anything.
>
> Run "newsq -c".
> If exit status is 0, see if a fetchnews process is running.
> If not, run "fetchnews -P".
Ah! I wasn't expecting to see headers. :)
There was one post in the spool.
I ran fetchnews, and while I was watching the blinky(tm) lights on my
external modem show the exchange of up and down data, I ran newsq -c
again...more than once.
I got this on the first one (same as I got before running fetchnews):
Contents of queue in directory /var/spool/news/out.going:
3753-1190975894-1: complete 2532 bytes, spooled Fri Sep 28 03:38:14 2007
From: Blinky the Shark <no.spam@box.invalid>
Newsgroups: news.software.readers
Subject: Re: making posts unreadable for google groupers?
Message-ID: <m52vs4-9l3.ln1@thurston.blinkynet.net>
And on subsequent runs of newsq -c I got:
[blinky@thurston lib]$ newsq -c
Contents of queue in directory /var/spool/news/out.going:
The queue is empty.
Never got anything about exit status.
Anyway, thanks for the extra input. I've tagged all of your and Robert's posts
and will definitely try something soon.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project moved to this site August 28th:
http://improve-usenet.org
Technical Details
Message-ID:
<slrnffpmt9.3c9.no.spam@thurston.blinkynet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnffo7oj.jlt.no.spam@thurston.blinkynet.net> <pan.2007.09.27.22.25.15.39579@arumes.com> <slrnffpjb9.3tf.pjr@pjr.gotdns.org> <slrnffpjuh.2uo.no.spam@thurston.blinkynet.net> <slrnffplvb.3tf.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnffpmt9.3c9.no.spam@thurston.blinkynet.net> Subject: Re: [leafnode] Instant Upload Date: Fri, 28 Sep 2007 10:46:33 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <slrnffo7oj.jlt.no.spam@thurston.blinkynet.net> <pan.2007.09.27.22.25.15.39579@arumes.com> <slrnffpjb9.3tf.pjr@pjr.gotdns.org> <slrnffpjuh.2uo.no.spam@thurston.blinkynet.net> <slrnffplvb.3tf.pjr@pjr.gotdns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: http://blinkynet.net http://improve-usenet.org Lines: 80 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net yiAGWMIvZBc94eKev8U/HQ4Q+mYteBpft7RaWuaM0nGKF75bKA Cancel-Lock: sha1:1N+DXBBYzwySPBRzGQ4sVXfFZcw= X-The-Usenet-Improvement-Project: http://improve-usenet.org X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%; )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E X-OS: Mandriva 2006 Linux; kernel 2.6.12 X-WebTV-Stationery: Standard; BGColor=black; TextColor=black User-Agent: slrn/0.9.8.1pl2.1 (Linux)