Thread View: news.software.readers
22 messages
22 total messages
Started by Blinky the Shark
Thu, 27 Sep 2007 21:21
[leafnode] Instant Upload
Author: Blinky the Shark
Date: Thu, 27 Sep 2007 21:21
Date: Thu, 27 Sep 2007 21:21
9 lines
1689 bytes
1689 bytes
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? -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Robert Spanjaard
Date: Thu, 27 Sep 2007 22:25
Date: Thu, 27 Sep 2007 22:25
15 lines
1841 bytes
1841 bytes
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. If it doesn't work, you could setup a new cron job which executes fetchnews -P every 5 minutes, for example. -- Regards, Robert http://www.arumes.com
Re: [leafnode] Instant Upload
Author: Mike Yetto
Date: Thu, 27 Sep 2007 22:52
Date: Thu, 27 Sep 2007 22:52
17 lines
2215 bytes
2215 bytes
Bada bing Blinky the Shark <no.spam@box.invalid> bada bang:
> 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?
>
>
I have a macro that was supplied by Troy called fetchnews.sl. It
will do this as well as initiate a full fetchnews cycle.
<URL:http://piggo.com/~troy/slrn.php#macros>
Mike "just for good measure - RTFM" Yetto
--
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
- John Adams
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Thu, 27 Sep 2007 23:10
Date: Thu, 27 Sep 2007 23:10
23 lines
2276 bytes
2276 bytes
Robert Spanjaard 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. > > If it doesn't work, you could setup a new cron job which executes > fetchnews -P every 5 minutes, for example. Thanks, Robert. I'll do some investigating. Damn, I love this stickytags macro. :) -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Thu, 27 Sep 2007 23:16
Date: Thu, 27 Sep 2007 23:16
24 lines
2211 bytes
2211 bytes
Mike Yetto wrote: > Bada bing Blinky the Shark <no.spam@box.invalid> bada bang: >> 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? > > I have a macro that was supplied by Troy called fetchnews.sl. It will > do this as well as initiate a full fetchnews cycle. > ><URL:http://piggo.com/~troy/slrn.php#macros> Thanks, Mike. I'll remember that if ever use slrn with leafnode. ;) (Notice how carefully both my Subject header and my body ask about leafnode generically, in a non-client-specific manner.) -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Mike Yetto
Date: Fri, 28 Sep 2007 00:02
Date: Fri, 28 Sep 2007 00:02
30 lines
2761 bytes
2761 bytes
Bada bing Blinky the Shark <no.spam@box.invalid> bada bang:
> Mike Yetto wrote:
>> Bada bing Blinky the Shark <no.spam@box.invalid> bada bang:
>>> 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?
>>
>> I have a macro that was supplied by Troy called fetchnews.sl. It will
>> do this as well as initiate a full fetchnews cycle.
>>
>><URL:http://piggo.com/~troy/slrn.php#macros>
>
> Thanks, Mike.
>
> I'll remember that if ever use slrn with leafnode. ;)
>
> (Notice how carefully both my Subject header and my body ask about
> leafnode generically, in a non-client-specific manner.)
>
>
Well then, you could try this directly:
sudo /usr/sbin/fetchnews -vvv -P
Mike "very fishy technique" Yetto
--
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
- John Adams
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 00:05
Date: Fri, 28 Sep 2007 00:05
37 lines
2729 bytes
2729 bytes
Mike Yetto wrote: > Bada bing Blinky the Shark <no.spam@box.invalid> bada bang: >> Mike Yetto wrote: >>> Bada bing Blinky the Shark <no.spam@box.invalid> bada bang: >>>> 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? >>> >>> I have a macro that was supplied by Troy called fetchnews.sl. It >>> will do this as well as initiate a full fetchnews cycle. >>> >>><URL:http://piggo.com/~troy/slrn.php#macros> >> >> Thanks, Mike. >> >> I'll remember that if ever use slrn with leafnode. ;) >> >> (Notice how carefully both my Subject header and my body ask about >> leafnode generically, in a non-client-specific manner.) >> >> > > Well then, you could try this directly: sudo /usr/sbin/fetchnews -vvv > -P Dood. :) I know how to run it by hand. I click the shortcut I created on one of my task bars. "Is there a way to get leafnode to upload a post when I send it"; not "...when I manually tell it to." -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Mike Yetto
Date: Fri, 28 Sep 2007 00:13
Date: Fri, 28 Sep 2007 00:13
17 lines
2334 bytes
2334 bytes
Bada bing Blinky the Shark <no.spam@box.invalid> bada bang:
> Dood. :)
>
> I know how to run it by hand. I click the shortcut I created on one of
> my task bars. "Is there a way to get leafnode to upload a post when I
> send it"; not "...when I manually tell it to."
>
>
You could try readmymind.dll or justdowhatiwant.sh
Mike "furrfu" Yetto
--
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
- John Adams
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 00:28
Date: Fri, 28 Sep 2007 00:28
23 lines
2299 bytes
2299 bytes
Mike Yetto wrote: > Bada bing Blinky the Shark <no.spam@box.invalid> bada bang: >> Dood. :) >> >> I know how to run it by hand. I click the shortcut I created on one >> of my task bars. "Is there a way to get leafnode to upload a post >> when I send it"; not "...when I manually tell it to." > > You could try readmymind.dll or justdowhatiwant.sh Sorry, I'm too involved putting the finishing touches on readwhatiquitespecificallydescribed.com. > Mike "furrfu" Yetto Relax a little. :) -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Peter J Ross
Date: Fri, 28 Sep 2007 09:46
Date: Fri, 28 Sep 2007 09:46
23 lines
2128 bytes
2128 bytes
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. > > If it doesn't work, you could setup a new cron job which executes > fetchnews -P every 5 minutes, for example. 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. -- PJR :-)
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 09:56
Date: Fri, 28 Sep 2007 09:56
32 lines
2826 bytes
2826 bytes
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. >> >> If it doesn't work, you could setup a new cron job which executes >> fetchnews -P every 5 minutes, for example. > > 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? -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Peter J Ross
Date: Fri, 28 Sep 2007 10:31
Date: Fri, 28 Sep 2007 10:31
49 lines
3200 bytes
3200 bytes
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". -- PJR :-)
Re: [leafnode] Instant Upload
Author: 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
Re: [leafnode] Instant Upload
Author: Peter J Ross
Date: Fri, 28 Sep 2007 11:06
Date: Fri, 28 Sep 2007 11:06
83 lines
4780 bytes
4780 bytes
In news.software.readers on 28 Sep 2007 10:46:33 GMT, Blinky the Shark
<no.spam@box.invalid> wrote:
> 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. :)
<...>
> Never got anything about exit status.
With Leafnode 2, newsq -c reports a different exit code depending on
whether there are outgoing posts waiting or not, which is useful for
scripting. It seems that you can't do that with Leafnode 1, which
means that your script will need to be more complicated.
# newsq -V
newsq 2.0.0.alpha20070602a
# newsq -h
Usage:
newsq [OPTIONS] [-cf]
options are:
-d spooldir - use spooldir instead of compiled-in default
-D debug - set debug flags (see config.example for documentation)
-e - redirect logging to standard error
-F config - read config file as configuration instead of default
-v [...] - increase verbosity level (can be repeated)
-V - just print version and exit, perform no other operation
-c - exit with code 1 on error,
exit with code 0 if out.going queue has articles
exit with code 69 if out.going queue is empty.
-f - print queue of articles to be fetched in delaybody mode
-h - print short usage help like this
--
PJR :-)
Re: [leafnode] Instant Upload
Author: Robert Spanjaard
Date: Fri, 28 Sep 2007 18:32
Date: Fri, 28 Sep 2007 18:32
20 lines
2172 bytes
2172 bytes
On Fri, 28 Sep 2007 09:46:17 +0000, Peter J Ross wrote: >> 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. >> >> If it doesn't work, you could setup a new cron job which executes >> fetchnews -P every 5 minutes, for example. > > 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. Fetchnews uses a lockfile to check if an instance is running already. So there's no need to check it in a script (again). -- Regards, Robert http://www.arumes.com
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 19:24
Date: Fri, 28 Sep 2007 19:24
99 lines
5881 bytes
5881 bytes
Peter J Ross wrote: > In news.software.readers on 28 Sep 2007 10:46:33 GMT, Blinky the Shark ><no.spam@box.invalid> wrote: > >> 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. :) > ><...> > >> Never got anything about exit status. > > With Leafnode 2, newsq -c reports a different exit code depending on > whether there are outgoing posts waiting or not, which is useful for > scripting. It seems that you can't do that with Leafnode 1, which > means that your script will need to be more complicated. Okay > # newsq -V > newsq 2.0.0.alpha20070602a > # newsq -h > Usage: > newsq [OPTIONS] [-cf] > options are: > -d spooldir - use spooldir instead of compiled-in default > -D debug - set debug flags (see config.example for documentation) > -e - redirect logging to standard error > -F config - read config file as configuration instead of default > -v [...] - increase verbosity level (can be repeated) > -V - just print version and exit, perform no other operation > -c - exit with code 1 on error, > exit with code 0 if out.going queue has articles > exit with code 69 if out.going queue is empty. > -f - print queue of articles to be fetched in delaybody mode > -h - print short usage help like this Usage: fetchnews [-q] [-v] [-x #] [-l] [-n] [-f] [-P] [-w] -q: quiet, suppress some warnings, cancels -v -v: more verbose (may be repeated), cancels -q -x: check for # extra articles in each group -l: do not use supplementary servers -n: do not automatically expire unread groups -f: force reload of groupinfo file -P: only post outgoing articles, don't fetch any -w: wait, run XOVER updater in foreground I tried the verbose switch and still nothing other than what I reported earlier. It was worth a shot. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 19:25
Date: Fri, 28 Sep 2007 19:25
25 lines
2558 bytes
2558 bytes
Robert Spanjaard wrote: > On Fri, 28 Sep 2007 09:46:17 +0000, Peter J Ross wrote: > >>> 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. >>> >>> If it doesn't work, you could setup a new cron job which executes >>> fetchnews -P every 5 minutes, for example. >> >> 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. > > Fetchnews uses a lockfile to check if an instance is running already. So > there's no need to check it in a script (again). I wondered about a lock, but forgot to ask. Thanks. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project moved to this site August 28th: http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Peter J Ross
Date: Fri, 28 Sep 2007 22:04
Date: Fri, 28 Sep 2007 22:04
26 lines
2297 bytes
2297 bytes
In news.software.readers on Fri, 28 Sep 2007 20:32:55 +0200, Robert Spanjaard <spamtrap@arumes.com> wrote: > On Fri, 28 Sep 2007 09:46:17 +0000, Peter J Ross wrote: > >>> 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. >>> >>> If it doesn't work, you could setup a new cron job which executes >>> fetchnews -P every 5 minutes, for example. >> >> 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. > > Fetchnews uses a lockfile to check if an instance is running already. So > there's no need to check it in a script (again). I think it's more efficient to check. But checking for the existence of a lockfile may be simpler than checking for the existence of a process. Thanks. -- PJR :-)
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Fri, 28 Sep 2007 22:22
Date: Fri, 28 Sep 2007 22:22
31 lines
2854 bytes
2854 bytes
Peter J Ross wrote: > In news.software.readers on Fri, 28 Sep 2007 20:32:55 +0200, Robert > Spanjaard <spamtrap@arumes.com> wrote: > >> On Fri, 28 Sep 2007 09:46:17 +0000, Peter J Ross wrote: >> >>>> 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. >>>> >>>> If it doesn't work, you could setup a new cron job which executes >>>> fetchnews -P every 5 minutes, for example. >>> >>> 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. >> >> Fetchnews uses a lockfile to check if an instance is running already. So >> there's no need to check it in a script (again). > > I think it's more efficient to check. But checking for the existence > of a lockfile may be simpler than checking for the existence of a > process. Thanks. Seems like it wouldn't be specific to any one version, either. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project - http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Rikishi 42
Date: Mon, 01 Oct 2007 22:51
Date: Mon, 01 Oct 2007 22:51
32 lines
2126 bytes
2126 bytes
On 2007-09-27, Blinky the Shark <no.spam@box.invalid> 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? I run a script to fetch news every 10 min in the hours I'm n ormally at home, for the text-only groups. Any binary groups are fetched at night, when my ISP counts half volumes. The script tests if there is a outgoing post waiting. If there is, it makes a post-only run and sleeps a few secs before fetching the news. That way, I get my own posts back in the same cron job. #! /bin/bash if [ `ls "/var/spool/news/out.going/" | wc -l` -ne 0 ]; then # Have a post-only run sudo -u news /usr/sbin/fetchnews -vP # Wait long enough for the post be digested by the upstream server echo sleeping 10 sec sleep 10 fi sudo -u news env "LN_SKIP_GROUPS=alt.binar*" /usr/sbin/fetchnews -v -- There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss. Douglas Adams
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Mon, 01 Oct 2007 23:57
Date: Mon, 01 Oct 2007 23:57
16 lines
2062 bytes
2062 bytes
Rikishi 42 wrote: > On 2007-09-27, Blinky the Shark <no.spam@box.invalid> 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? > > I run a script to fetch news every 10 min in the hours I'm n ormally at > home, for the text-only groups. Any binary groups are fetched at night, when > my ISP counts half volumes. Others have suggested scheduled uploads, as well, rather than what I asked for. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project - http://improve-usenet.org
Re: [leafnode] Instant Upload
Author: Blinky the Shark
Date: Tue, 02 Oct 2007 03:48
Date: Tue, 02 Oct 2007 03:48
22 lines
2307 bytes
2307 bytes
Blinky the Shark wrote: > Rikishi 42 wrote: >> On 2007-09-27, Blinky the Shark <no.spam@box.invalid> 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? >> >> I run a script to fetch news every 10 min in the hours I'm n ormally >> at home, for the text-only groups. Any binary groups are fetched at >> night, when my ISP counts half volumes. > > Others have suggested scheduled uploads, as well, rather than what I > asked for. At this point, I've just made a bash script shortcut that runs leafnode -P after checking for any waiting messages in the outgoing queue. Good enough for now. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project - http://improve-usenet.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads