🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
42 messages
42 total messages Started by John F. Morse Fri, 07 Jul 2006 10:10
Adding new groups
#73783
Author: John F. Morse
Date: Fri, 07 Jul 2006 10:10
12 lines
1532 bytes
Is there any way to add new groups using a wildcard, or do they need to 
be manually added one-by-one using the ctlinnd reload command?

I suppose the server could be throttled, and then a captured and edited 
textfile could be appended to the active file, followed by "ctlinnd 
reload active blah" and then "ctlinnd go [blah]"?

Something like the hostinfo.dat or newsrc files from Thunderbird, or the 
list command in telnet.

-- 
John
Re: Adding new groups
#73784
Author: Bozweb
Date: Fri, 07 Jul 2006 14:49
21 lines
1859 bytes
On Fri, 07 Jul 2006 10:10:26 GMT, "John F. Morse"
<xanadu.bbs@invalid.net> wrote:

>Is there any way to add new groups using a wildcard, or do they need to 
>be manually added one-by-one using the ctlinnd reload command?
>
>I suppose the server could be throttled, and then a captured and edited 
>textfile could be appended to the active file, followed by "ctlinnd 
>reload active blah" and then "ctlinnd go [blah]"?
I have stopped the server, copy/paste the newsgroups and starting Inn
again.
Works only for a "fresh installed" server I suppose.

>Something like the hostinfo.dat or newsrc files from Thunderbird, or the 
>list command in telnet.

-- 
Posted by
http://news.bozweb.net
http://www.bozweb.net
Key: 0x82DEE1A0
Re: Adding new groups
#73787
Author: Russ Allbery
Date: Fri, 07 Jul 2006 17:42
20 lines
2028 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> Is there any way to add new groups using a wildcard, or do they need to
> be manually added one-by-one using the ctlinnd reload command?

> I suppose the server could be throttled, and then a captured and edited
> textfile could be appended to the active file, followed by "ctlinnd
> reload active blah" and then "ctlinnd go [blah]"?

It's really better to script a bunch of ctlinnd newgroup commands.  The
above will generally work, but it isn't guaranteed to update all of INN's
internal state properly.  I think there are no problems with adding
groups, but if you remove groups via a similar procedure, you'll strand
overview files that will never be deleted and create some similar issues.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Adding new groups
#73793
Author: John F. Morse
Date: Sat, 08 Jul 2006 07:40
43 lines
3182 bytes
Russ Allbery wrote:

>John F Morse <xanadu.bbs@invalid.net> writes:
>
>
>>Is there any way to add new groups using a wildcard, or do they need to
>>be manually added one-by-one using the ctlinnd reload command?
>>
>
>>I suppose the server could be throttled, and then a captured and edited
>>textfile could be appended to the active file, followed by "ctlinnd
>>reload active blah" and then "ctlinnd go [blah]"?
>>
>
>It's really better to script a bunch of ctlinnd newgroup commands.  The
>above will generally work, but it isn't guaranteed to update all of INN's
>internal state properly.  I think there are no problems with adding
>groups, but if you remove groups via a similar procedure, you'll strand
>overview files that will never be deleted and create some similar issues.
>


Thanks, Russ.

I had a typo in the first paragraph. It should have read:

"Is there any way to add new groups using a wildcard, or do they need to be manually added one-by-one using the ctlinnd *newgroup* command?"

I think you caught that tho....

So when someone creates a new INN server, and wants a total feed of say the Big Eight, they will need to use newgroup or edit the active file? No wild cards?

I just checked the RumorMill docs and it looks like it also needs a manual newgroup or a Newsgroups File import:

http://www.swaystairs.com/Swaystairs/RumorMill/Documentation/1.3/Newsgroups.html

Probably the best (most efficient) method of creating thousands of groups, would be to pause or stop the server, edit the active file, then restart it. All of the manual typing (spell "typos") could be eliminated by using a captured list from the ISP, and wholesale replacement of the high and low water mark data with 0000000000 0000000001 (plus y, etc.)?

I could try a script, but the scripting learning curve hasn't even been 
started yet. You have one handy? ;-)

-- 
John
Re: Adding new groups
#73796
Author: Iulius
Date: Sat, 08 Jul 2006 09:50
15 lines
1817 bytes
En réponse à John F. Morse :
> I could try a script, but the scripting learning curve hasn't even been 
> started yet. You have one handy? ;-)

wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
egrep "^comp\." list > list-comp
/usr/lib/news/bin/docheckgroups < list-comp > result
sh result

will create all the « comp.* » hierarchy.

-- 
Iulius

« Medicorum nutrix est intemperantia. »
Re: Adding new groups
#73798
Author: John F. Morse
Date: Sat, 08 Jul 2006 13:37
93 lines
4760 bytes
Iulius wrote:

> En réponse à John F. Morse :
>
>> I could try a script, but the scripting learning curve hasn't even 
>> been started yet. You have one handy? ;-)
>
>
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
> egrep "^comp\." list > list-comp
> /usr/lib/news/bin/docheckgroups < list-comp > result
> sh result
>
> will create all the « comp.* » hierarchy.


Iulius,

This didn't give the expected output. Seems to fail to create the file « 
list » for the egrep.

------------------------------------------------------------------------

john@news7:~/test$ wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
--07:25:21--  ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
           => `newsgroups'
Resolving ftp.isc.org... done.
Connecting to ftp.isc.org[2001:4f8:0:2::18]:21... failed: Address family 
not supported by protocol.
Connecting to ftp.isc.org[204.152.184.110]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/usenet/CONFIG ... done.
==> PASV ... done.    ==> RETR newsgroups ... done.
Length: 2,444,405 (unauthoritative)

100%[=====<snip>=====>] 2,444,405    880.20K/s    ETA 00:00

07:25:25 (880.20 KB/s) - `newsgroups' saved [2444405]

--07:25:25--  http://list/
           => `index.html'
Resolving list... failed: Name or service not known.

FINISHED --07:25:25--
Downloaded: 2,444,405 bytes in 1 files
john@news7:~/test$ egrep "^comp\." list > list-comp
grep: list: No such file or directory
john@news7:~/test$ /usr/lib/news/bin/docheckgroups < list-comp > result
bash: /usr/lib/news/bin/docheckgroups: No such file or directory
john@news7:~/test$ sh result

------------------------------------------------------------------------

john@news7:~/test$ ls -al
total 2393
drwxr-xr-x    2 john     users         136 Jul  8 07:25 .
drwxr-xr-x   71 john     john         4192 Jul  8 07:25 ..
-rw-r--r--    1 john     users           0 Jul  8 07:25 list-comp
-rw-r--r--    1 john     users     2444405 Jul  8 07:25 newsgroups
-rw-r--r--    1 john     users           0 Jul  8 07:25 result

However if I manually run: « egrep "^comp\." newsgroups > list-comp » 
then I do get a proper list of the comp hierarchy:

news@news7:~/test$ ls -al
total 2454
drwxr-xr-x   2 news news     136 2006-07-08 07:46 .
drwxrwxr-x  20 news news     856 2006-07-08 07:45 ..
-rw-r--r--   1 news news   59912 2006-07-08 07:56 list-comp
-rw-r--r--   1 news news 2444405 2006-07-08 07:46 newsgroups
-rw-r--r--   1 news news    3725 2006-07-08 07:46 result

Something is missing to save the file as « list » instead of « 
newsgroups » but I haven't had enough coffee yet to figure it out. ;-)

Perhaps the second line of the script should be « egrep "^comp\." 
newsgroups > list-comp »?

I'm a little afraid to change this because I can see what the last two 
lines could do to my active file. I can't find any man page for 
checkgroups, but from looking at the « result » file, I could see nearly 
everything could be changed or deleted if it was actually ran in a 
shell. (I did find numerous references to checkgroups on Google though.)

Any idea what is missing?

I'll go to the kitchen and make a pot of coffee. ;-)

Thanks in advance,

-- 
John
Re: Adding new groups
#73800
Author: Jeffrey M. Vinocur
Date: Sat, 08 Jul 2006 15:44
20 lines
1838 bytes
In article <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>So when someone creates a new INN server, and wants a total feed of say
>the Big Eight, they will need to use newgroup or edit the active file?
>No wild cards?

Well, something like `ctlinnd newgroup *` doesn't make sense,
since there's no global master list that INN could use to decide
what to add.

When you're looking to do a big import, however, you might want
to take a look at the actsync tool.  It's a little complex, but
is what I use for this sort of thing.  You can configure it to do
all the ctlinnd commands for you.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Adding new groups
#73801
Author: Peter Robinson
Date: Sat, 08 Jul 2006 15:45
26 lines
1845 bytes
John F. Morse <xanadu.bbs@invalid.net> wrote:

> Iulius wrote:
> 
> > En réponse à John F. Morse :
> >
> >> I could try a script, but the scripting learning curve hasn't even
> >> been started yet. You have one handy? ;-)
> >
> > wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
> > egrep "^comp\." list > list-comp
> > /usr/lib/news/bin/docheckgroups < list-comp > result
> > sh result

[...]

> This didn't give the expected output. Seems to fail to create the file «
> list » for the egrep.

The first line should probably be
 wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list

The '>' tells the shell to put the output of the wget command into a
file called list.

Peter
Re: Adding new groups
#73803
Author: John F. Morse
Date: Sat, 08 Jul 2006 16:03
33 lines
2296 bytes
Jeffrey M. Vinocur wrote:

>In article <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>So when someone creates a new INN server, and wants a total feed of say
>>the Big Eight, they will need to use newgroup or edit the active file?
>>No wild cards?
>>    
>>
>
>Well, something like `ctlinnd newgroup *` doesn't make sense,
>since there's no global master list that INN could use to decide
>what to add.
>
>When you're looking to do a big import, however, you might want
>to take a look at the actsync tool.  It's a little complex, but
>is what I use for this sort of thing.  You can configure it to do
>all the ctlinnd commands for you.
>


A quick scan of actsync(8) looks like this is what I'm needing. It is 
complex, and will take a few more reads to absorb enough of it to become 
dangerous.  ;-)

Great tip.

Thanks Jeff.

-- 
John
Re: Adding new groups
#73804
Author: John F. Morse
Date: Sat, 08 Jul 2006 16:20
76 lines
3799 bytes
Peter Robinson wrote:

>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>Iulius wrote:
>>
>>
>>>En réponse à John F. Morse :
>>>
>>>
>>>>I could try a script, but the scripting learning curve hasn't even
>>>>been started yet. You have one handy? ;-)
>>>>
>>>wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
>>>egrep "^comp\." list > list-comp
>>>/usr/lib/news/bin/docheckgroups < list-comp > result
>>>sh result
>>>
>
>[...]
>
>
>>This didn't give the expected output. Seems to fail to create the file «
>>list » for the egrep.
>>
>
>The first line should probably be
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
>
>The '>' tells the shell to put the output of the wget command into a
>file called list.
>
>Peter
>


That sounded logical to me, but when I tried it, it didn't put anything 
into the file "list" and instead overwrote my current "newsgroups" file 
(I have a backup). ;-)

I'm curious as to where/why the "=> `newsgroups'" line is originating 
(ftp.isc.org?), and if it is the problem? I see the retrieve command 
specifying "newsgroups" from the remote site, so wget must be defaulting 
to using the same filename to save the downloaded file?

------------------------------------------------------------------------

news@news7:~$ wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
--11:04:04--  ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
           => `newsgroups'
Resolving ftp.isc.org... 204.152.184.110
Connecting to ftp.isc.org[204.152.184.110]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/usenet/CONFIG ... done.
==> PASV ... done.    ==> RETR newsgroups ... done.
Length: 2,444,405 (unauthoritative)

100%[====<snip>====>] 2,444,405    604.32K/s    ETA 00:00

11:04:09 (582.82 KB/s) - `newsgroups' saved [2444405]
 
------------------------------------------------------------------------

news@news7:~$ ls -al
total 2994
drwxrwxr-x  19 news news     888 2006-07-08 11:04 .
drwxr-xr-x   8 root root     216 2006-06-18 09:37 ..
-rw-r--r--   1 news news       0 2006-07-08 11:04 list
-rw-r--r--   1 news news 2444405 2006-07-08 11:04 newsgroups

(Other news' files in ~ removed for clarity.)

-- 
John
Re: Adding new groups
#73806
Author: Iulius
Date: Sat, 08 Jul 2006 17:55
39 lines
2765 bytes
En réponse à John F. Morse :

> However if I manually run: « egrep "^comp\." newsgroups > list-comp » 
> then I do get a proper list of the comp hierarchy

Yes you are right!  The « > » was missing; sorry.


> I'm a little afraid to change this because I can see what the last two 
> lines could do to my active file.

It creates all the official groups for the « comp.* » hierarchy and
deletes all the unofficial groups for the « comp.* » hierarchy.

You can verify if you want. Take one of the group it wants to create and
verify it exists (on other news servers or on Google Groups). Do the
same for a group it wants to delete.
If you wish and are not sure, you can paste some lines of the result
of docheckgroups.

By the way, the last checkgroups of the Big-Eight is :

http://groups.google.com/group/news.announce.newgroups/msg/066534368aa87db5?dmode=source


The newsgroups file of <ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups> is
more up to date in fact (there were some « comp.* » groups which were deleted
yesterday !).


> Any idea what is missing?

I do not know. Could you paste the list it wants to create/modify/delete ?

-- 
Iulius

« Elle est gentille, mais les épices lui montent facilement
   au nez... qu'elle a joli d'ailleurs ! » (César)
Re: Adding new groups
#73810
Author: John F. Morse
Date: Sun, 09 Jul 2006 11:49
78 lines
3994 bytes
Iulius wrote:

> En réponse à John F. Morse :
>
>> However if I manually run: « egrep "^comp\." newsgroups > list-comp » 
>> then I do get a proper list of the comp hierarchy
>
>
> Yes you are right!  The « > » was missing; sorry.
>
>> I'm a little afraid to change this because I can see what the last 
>> two lines could do to my active file.
>
>
> It creates all the official groups for the « comp.* » hierarchy and
> deletes all the unofficial groups for the « comp.* » hierarchy.
>
> You can verify if you want. Take one of the group it wants to create and
> verify it exists (on other news servers or on Google Groups). Do the
> same for a group it wants to delete.
> If you wish and are not sure, you can paste some lines of the result
> of docheckgroups.
>
> By the way, the last checkgroups of the Big-Eight is :
>
> http://groups.google.com/group/news.announce.newgroups/msg/066534368aa87db5?dmode=source 
>
>
>
> The newsgroups file of 
> <ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups> is
> more up to date in fact (there were some « comp.* » groups which were 
> deleted
> yesterday !).
>
>> Any idea what is missing?
>
>
> I do not know. Could you paste the list it wants to 
> create/modify/delete ? 


I'll repost the passage again, with the lines in a better order:

"Something is missing to save the file as « list » instead of « 
newsgroups » but I haven't had enough coffee yet to figure it out. ;-)

"Perhaps the second line of the script should be « egrep "^comp\." 
newsgroups > list-comp »?

"Any idea what is missing?"

You replied: "Yes you are right!  The « > » was missing; sorry."

Peter Robinson also commented about the missing ">" in the shell command:

"The first line should probably be
"wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list

"The '>' tells the shell to put the output of the wget command into a 
file called list."

And I replied:

"That sounded logical to me, but when I tried it, it didn't put anything 
into the file "list" and instead overwrote my current "newsgroups" file 
(I have a backup). ;-)

"I'm curious as to where/why the "=> `newsgroups'" line is originating 
(ftp.isc.org?), and if it is the problem? I see the retrieve command 
specifying "newsgroups" from the remote site, so wget must be defaulting 
to using the same filename to save the downloaded file?"

The concern is why "newsgroups" is the filename and not "list"? 
Actually, "list" is created (touched) but is an empty file.

-- 
John
Re: Adding new groups
#73811
Author: John F. Morse
Date: Sun, 09 Jul 2006 12:31
65 lines
3886 bytes
Jeffrey M. Vinocur wrote:

>In article <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>So when someone creates a new INN server, and wants a total feed of say
>>the Big Eight, they will need to use newgroup or edit the active file?
>>No wild cards?
>>    
>>
>
>Well, something like `ctlinnd newgroup *` doesn't make sense,
>since there's no global master list that INN could use to decide
>what to add.
>


What about the list at ISC and the list in the n.a.newgroups group? 
These are usable global master lists, and the only "official" full lists 
that I know of.

Iulius mentioned them:

"By the way, the last checkgroups of the Big-Eight is : 
http://groups.google.com/group/news.announce.newgroups/msg/066534368aa87db5?dmode=source 


"The newsgroups file of <ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups> 
is more up to date in fact (there were some « comp.* » groups which were 
deleted yesterday !)."

The ctlinnd newgroup routine, however, does not know how to find, 
download, parse and use these lists. This is probably what you were 
thinking.

I know of no other routine that can use these lists to create the active 
file, or to create a textfile which could be appended to the active file.

Iulius did provide a shell script to do the work for the newsgroups 
file, but it is not saving the downloaded file to the file "list" as 
specified. When it comes to shell scripts, perl, etc., I'm as dumb as a 
sack of hammers.

Perhaps something similar could be scripted to work for updating an 
active file, by stripping off the group descriptions, and adding " 
0000000000 0000000001 y" to the group names?

The list of groups without descriptions is available using the telnet 
"list" command to any NNTP server. It is probably more apropos as to 
what you "can" get as opposed to what is "official."

Instead of using a newsgroups file of varying length descriptions, it 
might be easier to design a script to "zero out" the high and low water 
marks to that shown above? A known length: Ten zeros, plus nine zeros 
and a one, followed by a y flag character. If required, the y flag could 
later be changed by simple editing. (Thinking out loud here: Wouldn't 
the flag need to be retained as-is, in order for moderated groups to 
remain moderated?)

Don't spend your weekend pondering on this, but if you have any ideas, 
I'd sure like to hear them. I'll buy the coffee.

-- 
John
Re: Adding new groups
#73812
Author: Iulius
Date: Sun, 09 Jul 2006 13:48
32 lines
2323 bytes
En réponse à John F. Morse :
> Iulius did provide a shell script to do the work for the newsgroups 
> file, but it is not saving the downloaded file to the file "list" as 
> specified.

The line
wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
works.

Or you can do:

mkdir test
cd test
wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
mv newsgroups list

but the previous command is better!


> Perhaps something similar could be scripted to work for updating an 
> active file, by stripping off the group descriptions, and adding " 
> 0000000000 0000000001 y" to the group names?

ftp://ftp.isc.org/pub/usenet/CONFIG/active
can be of help.

But it is better to do the chekgroups and run the shell script generated.

-- 
Iulius

« Vulnera dum sanas, dolor est medicina doloris. »
Re: Adding new groups
#73814
Author: Iulius
Date: Sun, 09 Jul 2006 13:59
25 lines
2050 bytes
En réponse à Iulius :
> The line
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
> works.

No, sorry.
In fact, it is the standard output which is written in « list »,
and not the downloaded file.


> Or you can do:
> 
> mkdir test
> cd test
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
> mv newsgroups list

Well, that works :)

-- 
Iulius

« -- Je me sens un peu rouillé ! C'est sûrement à cause
   des pluies provoquées par Assurancetourix !
   -- En attendant c'est nous qui dérouillons ! » (Astérix)
Re: Adding new groups
#73815
Author: F. Senault
Date: Sun, 09 Jul 2006 15:51
23 lines
2073 bytes
Le 9 juillet 2006 à 15:48, Iulius a écrit :

> En réponse à John F. Morse :
>> Iulius did provide a shell script to do the work for the newsgroups 
>> file, but it is not saving the downloaded file to the file "list" as 
>> specified.
> 
> The line
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
> works.

A quick "man wget" would tell you :

wget -O list ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups

HTH.

Fred
-- 
So I open my door to my enemies
And I ask could we wipe the slate clean
But they tell me to please go fuck myself
You know you just can't win                 (Pink Floyd, Lost For Words)
Re: Adding new groups
#73817
Author: Black Dragon
Date: Sun, 09 Jul 2006 16:45
82 lines
4323 bytes
John F. Morse wrote:

> Jeffrey M. Vinocur wrote:

>>In article <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net>,
>>John F. Morse <xanadu.bbs@invalid.net> wrote:
>>  
>>
>>>So when someone creates a new INN server, and wants a total feed of say
>>>the Big Eight, they will need to use newgroup or edit the active file?
>>>No wild cards?
>>>    
>>>
>>
>>Well, something like `ctlinnd newgroup *` doesn't make sense,
>>since there's no global master list that INN could use to decide
>>what to add.
>>


> What about the list at ISC and the list in the n.a.newgroups group? 
> These are usable global master lists, and the only "official" full lists 
> that I know of.

> Iulius mentioned them:

> "By the way, the last checkgroups of the Big-Eight is : 
> http://groups.google.com/group/news.announce.newgroups/msg/066534368aa87db5?dmode=source 


> "The newsgroups file of <ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups> 
> is more up to date in fact (there were some « comp.* » groups which were 
> deleted yesterday !)."

> The ctlinnd newgroup routine, however, does not know how to find, 
> download, parse and use these lists. This is probably what you were 
> thinking.

> I know of no other routine that can use these lists to create the active 
> file, or to create a textfile which could be appended to the active file.

> Iulius did provide a shell script to do the work for the newsgroups 
> file, but it is not saving the downloaded file to the file "list" as 
> specified. When it comes to shell scripts, perl, etc., I'm as dumb as a 
> sack of hammers.

> Perhaps something similar could be scripted to work for updating an 
> active file, by stripping off the group descriptions, and adding " 
> 0000000000 0000000001 y" to the group names?

> The list of groups without descriptions is available using the telnet 
> "list" command to any NNTP server. It is probably more apropos as to 
> what you "can" get as opposed to what is "official."

> Instead of using a newsgroups file of varying length descriptions, it 
> might be easier to design a script to "zero out" the high and low water 
> marks to that shown above? A known length: Ten zeros, plus nine zeros 
> and a one, followed by a y flag character. If required, the y flag could 
> later be changed by simple editing. (Thinking out loud here: Wouldn't 
> the flag need to be retained as-is, in order for moderated groups to 
> remain moderated?)

After telneting to a nntp server and listing the active file, I've done 
something like this in an sh shell on my hobby server.

# strip watermarks and flags:
cat active_file | awk '{ print $1 }' > active_no_watermarks

# add groups using ctlinnd newgroup
for group in `cat active_no_watermarks` ; do
	ctlinnd newgroup ${group}
done

HTH

-- 
Black Dragon

A woman's a woman until the day she dies, but a man's only a man as long
as he can.
		-- Moms Mabley
Re: Adding new groups
#73818
Author: Russ Allbery
Date: Sun, 09 Jul 2006 16:58
18 lines
1905 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> The ctlinnd newgroup routine, however, does not know how to find,
> download, parse and use these lists. This is probably what you were
> thinking.

> I know of no other routine that can use these lists to create the active
> file, or to create a textfile which could be appended to the active
> file.

This is exactly what actsync tries to do, and it can use the lists on
ftp.isc.org.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Adding new groups
#73819
Author: Iulius
Date: Sun, 09 Jul 2006 18:24
13 lines
1816 bytes
En réponse à F. Senault :
> A quick "man wget" would tell you :
> 
> wget -O list ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups

You're right. Thanks!

I tried « -o »... I have also problems in typo :-)

-- 
Iulius

« Vbi solitudinem faciunt, pacem appellant. » (Galgagus de Tacite)
Re: Adding new groups
#73820
Author: Peter Robinson
Date: Sun, 09 Jul 2006 21:30
22 lines
1939 bytes
John F. Morse <xanadu.bbs@invalid.net> wrote:

> Peter Robinson also commented about the missing ">" in the shell command:
> 
> "The first line should probably be
> "wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
> 
> "The '>' tells the shell to put the output of the wget command into a
> file called list."

Yes, sorry about that.  Unlike curl, wget doesn't output the resource
it's fetching to stdout so the "> list" won't help at all!  As Fred
says, it's wget -O list.

> "I'm curious as to where/why the "=> `newsgroups'" line is originating
> (ftp.isc.org?), and if it is the problem? I see the retrieve command 
> specifying "newsgroups" from the remote site, so wget must be defaulting
> to using the same filename to save the downloaded file?"

Exactly.

Peter
Re: Adding new groups
#73821
Author: John F. Morse
Date: Mon, 10 Jul 2006 10:07
45 lines
2981 bytes
Black Dragon wrote:

>John F. Morse wrote:
>
>>The list of groups without descriptions is available using the telnet 
>>"list" command to any NNTP server. It is probably more apropos as to 
>>what you "can" get as opposed to what is "official."
>>    
>>
>>Instead of using a newsgroups file of varying length descriptions, it 
>>might be easier to design a script to "zero out" the high and low water 
>>marks to that shown above? A known length: Ten zeros, plus nine zeros 
>>and a one, followed by a y flag character. If required, the y flag could 
>>later be changed by simple editing. (Thinking out loud here: Wouldn't 
>>the flag need to be retained as-is, in order for moderated groups to 
>>remain moderated?)
>>    
>>
>
>After telneting to a nntp server and listing the active file, I've done 
>something like this in an sh shell on my hobby server.
>
># strip watermarks and flags:
>cat active_file | awk '{ print $1 }' > active_no_watermarks
>
># add groups using ctlinnd newgroup
>for group in `cat active_no_watermarks` ; do
>	ctlinnd newgroup ${group}
>done
>
>HTH
>


I'm obviously overlooking something simple here, but my idea of 
telneting to get a "list" works great -- to the console.

However, I am dumbfounded as to how to get the incoming data routed to a 
file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
somefile ), but neither shell command works inside a telnet session.

Surely there is a method to save a telnet session to a file.

-- 
John
Re: Adding new groups
#73822
Author: F. Senault
Date: Mon, 10 Jul 2006 10:08
16 lines
2244 bytes
Le 10 juillet 2006 à 12:07, John F. Morse a écrit :

> However, I am dumbfounded as to how to get the incoming data routed to a 
> file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
> somefile ), but neither shell command works inside a telnet session.
> 
> Surely there is a method to save a telnet session to a file.

Try script.

Fred
-- 
Oh I try to find her  Oh I try to answer  I touch her hand  And death
smiles  She really want  to take me  I've seen the door  And the walls 
cry  (So) let it drain  (Your) static blood  And kiss the fallen angel
Down in the heart of hell                             (Noir Désir, Lola)
Re: Adding new groups
#73823
Author: John F. Morse
Date: Mon, 10 Jul 2006 10:19
29 lines
2172 bytes
F. Senault wrote:

>Le 10 juillet 2006 à 12:07, John F. Morse a écrit :
>
>  
>
>>However, I am dumbfounded as to how to get the incoming data routed to a 
>>file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
>>somefile ), but neither shell command works inside a telnet session.
>>
>>Surely there is a method to save a telnet session to a file.
>>    
>>
>
>Try script.
>
>Fred
>


Fred,

Could you provide me some clue how to do this?

 From within a telnet session, all I have at my disposal are the 
commands the remote application understands.

-- 
John
Re: Adding new groups
#73824
Author: Black Dragon
Date: Mon, 10 Jul 2006 11:10
49 lines
2742 bytes
John F. Morse wrote:

> F. Senault wrote:

>>Le 10 juillet 2006 à 12:07, John F. Morse a écrit :

>>>However, I am dumbfounded as to how to get the incoming data routed to a 
>>>file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
>>>somefile ), but neither shell command works inside a telnet session.

>>>Surely there is a method to save a telnet session to a file.

>>Try script.

> Could you provide me some clue how to do this?

>  From within a telnet session, all I have at my disposal are the 
> commands the remote application understands.

script basically invokes another shell and logs everything on a terminal
/ console / remote shell to a text file. The logging ends when you exit
script.

To capture an active file;

#start script, output to active_file
script active_file

#get active file
telnet news.blah.blah nntp
authinfo user blah
authinfo pass blah
list active
quit

#exit script
exit

Open the file in a text editor and remove the header and footer added by
script, and you're on your way.

HTH

-- 
Black Dragon

"I've had one child.  My husband wants to have another.  I'd like to
watch him have another."
Re: Adding new groups
#73825
Author: John F. Morse
Date: Mon, 10 Jul 2006 11:47
104 lines
4012 bytes
Black Dragon wrote:

>John F. Morse wrote:
>
>  
>
>>F. Senault wrote:
>>    
>>
>
>  
>
>>>Le 10 juillet 2006 à 12:07, John F. Morse a écrit :
>>>      
>>>
>
>  
>
>>>>However, I am dumbfounded as to how to get the incoming data routed to a 
>>>>file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
>>>>somefile ), but neither shell command works inside a telnet session.
>>>>        
>>>>
>
>  
>
>>>>Surely there is a method to save a telnet session to a file.
>>>>        
>>>>
>
>  
>
>>>Try script.
>>>      
>>>
>
>  
>
>>Could you provide me some clue how to do this?
>>    
>>
>
>  
>
>> From within a telnet session, all I have at my disposal are the 
>>commands the remote application understands.
>>    
>>
>
>script basically invokes another shell and logs everything on a terminal
>/ console / remote shell to a text file. The logging ends when you exit
>script.
>
>To capture an active file;
>
>#start script, output to active_file
>script active_file
>
>#get active file
>telnet news.blah.blah nntp
>authinfo user blah
>authinfo pass blah
>list active
>quit
>
>#exit script
>exit
>
>Open the file in a text editor and remove the header and footer added by
>script, and you're on your way.
>
>HTH
>


Of course!

My face is red. :-[

I took Fred's short statement, "Try script" to indicate writing a shell 
script to do the work. Scripting is an area (one of many) where I'm 
pretty ignorant.

Perhaps seeing his native language appears as French, I was mistakenly 
thinking he dropped the English article "a" in "Try 'a' script."

My sincere apologies to Fred, and my thanks to you for pointing out I 
should have recognized this is "script(1)" a shell command.

I just tried it and it worked great, with the exception the remote host 
closed the connection in the middle of the "T" newsgroups without 
finishing. That must me a problem with my ISP's NNTP server. I think 
they do maintenance this time in the morning (0630 local).

A second test a few minutes later resulted in the full list, through "zzz."

My next project would be to figure out how to compare this ISP's list of 
groups with another ISP's list of groups, and then output any differences.

Again, many thanks to both of you for the very much appreciated and 
needed help.

-- 
John
Re: Adding new groups
#73827
Author: John F. Morse
Date: Mon, 10 Jul 2006 12:21
48 lines
2925 bytes
Black Dragon wrote:

>John F. Morse wrote:
>
>>Instead of using a newsgroups file of varying length descriptions, it 
>>might be easier to design a script to "zero out" the high and low water 
>>marks to that shown above? A known length: Ten zeros, plus nine zeros 
>>and a one, followed by a y flag character. If required, the y flag could 
>>later be changed by simple editing. (Thinking out loud here: Wouldn't 
>>the flag need to be retained as-is, in order for moderated groups to 
>>remain moderated?)
>>    
>>
>
>After telneting to a nntp server and listing the active file, I've done 
>something like this in an sh shell on my hobby server.
>
># strip watermarks and flags:
>cat active_file | awk '{ print $1 }' > active_no_watermarks
>
># add groups using ctlinnd newgroup
>for group in `cat active_no_watermarks` ; do
>	ctlinnd newgroup ${group}
>done
>
>HTH
>


This works great. Either with the watermarks and flag, or with flags alone.

As an example, I had gedit find and replace " m" (space m) with nothing, 
to try and get rid of the moderated flag. Then I went to bed.

Twelve hours later gedit had the processor tied up to around 90% 
according to top(1). I wound up having to kill gedit.

I ran your awk routine and the file was modified in about one second! 
(AMD Duron 1.4 GHz, 512 MB RAM, Debian 3.0r2, KDE 3.3.2.)

A good example of CLI over GUI, even using konsole 1.4.2 under KDE, and 
not a tty. ;-)

Thanks again!


-- 
John
Re: Adding new groups
#73829
Author: Szymon Sokół
Date: Mon, 10 Jul 2006 14:55
23 lines
2710 bytes
On Mon, 10 Jul 2006 07:10:50 -0400 (EDT), Black Dragon wrote:

> John F. Morse wrote:
>>  From within a telnet session, all I have at my disposal are the 
>> commands the remote application understands.
> 
> script basically invokes another shell and logs everything on a terminal
> / console / remote shell to a text file. The logging ends when you exit
> script.

I'd rather use netcat instead of telnet:
$ netcat news.blah.blah nntp | tee logfile
authinfo user blah
authinfo pass blah
list active
quit
^D

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                 B
Computer Center, AGH - University of Science and Technology, Cracow, Poland  O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982  F
Free speech includes the right not to listen, if not interested -- Heinlein  H
Re: Adding new groups
#73830
Author: Russ Allbery
Date: Mon, 10 Jul 2006 16:18
17 lines
2040 bytes
Szymon Sokół <szymon@bastard.operator.from.hell.pl> writes:

> I'd rather use netcat instead of telnet:
> $ netcat news.blah.blah nntp | tee logfile
> authinfo user blah
> authinfo pass blah
> list active
> quit
> ^D

getlist is functionally equivalent to this, for what it's worth.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Adding new groups
#73833
Author: F. Senault
Date: Tue, 11 Jul 2006 00:15
12 lines
2059 bytes
Le 10 juillet 2006 à 13:47, John F. Morse a écrit :

> My sincere apologies to Fred, 

Heh.  No harm done !

Fred
-- 
Don't you breathe anymore  Are you far from the next corner ?  
Your race is burning the pavement
Welcome to the city   The city's done for you    Yell with the underdogs
Make sure they won't beat you                    (Noir Désir, 7 Minutes)
Re: Adding new groups
#73832
Author: Jeffrey M. Vinocur
Date: Tue, 11 Jul 2006 01:57
12 lines
1543 bytes
In article <e7rsg.355416$Fs1.88563@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>My next project would be to figure out how to compare this ISP's list of 
>groups with another ISP's list of groups, and then output any differences.

I believe actsync will do this.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Adding new groups
#73836
Author: r.rimmer
Date: Tue, 11 Jul 2006 10:23
39 lines
2543 bytes
Russ Allbery wrote:
> John F Morse <xanadu.bbs@invalid.net> writes:
>
> > The ctlinnd newgroup routine, however, does not know how to find,
> > download, parse and use these lists. This is probably what you were
> > thinking.
>
> > I know of no other routine that can use these lists to create the active
> > file, or to create a textfile which could be appended to the active
> > file.
>
> This is exactly what actsync tries to do, and it can use the lists on
> ftp.isc.org.
>
> --
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
>
>           Please post questions rather than mailing me directly.
>      <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


Please may I have some feedback on the following.

how to i add the following news groups and to which file.
alt.anonymous*
>alt.computer.security
>alt.cotse
>alt.hacker
>alt.privacy*
>alt.security*
>alt.testing.testing
>comp.security.pgp.discuss
>sci.crypt
>talk.politics.crypto 

how to delete news groups .

robert
Adding new groups using mod-active
#73835
Author: John F. Morse
Date: Tue, 11 Jul 2006 11:40
79 lines
4292 bytes
Russ Allbery wrote:

>John F Morse <xanadu.bbs@invalid.net> writes:
>
>>I know of no other routine that can use these lists to create the active
>>file, or to create a textfile which could be appended to the active
>>file.
>>
>
>This is exactly what actsync tries to do, and it can use the lists on
>ftp.isc.org.
>


I found and have tried to use mod-active(8) to update the active file. 
It appears to be working, and news.notice shows the activity, but after 
it finishes, the active file is not updated.

Sample news.notice:

Jul 11 06:07:53 localhost innd: SERVER paused batch active update, ok
Jul 11 06:07:53 localhost innd: controlchan! closed
Jul 11 06:07:53 localhost innd: innfeed! closed
Jul 11 06:07:53 localhost innd: controlchan! spawned 
controlchan!:12:proc:16778
Jul 11 06:07:53 localhost innd: innfeed! spawned innfeed!:16:proc:16779
Jul 11 06:07:53 localhost innd: SERVER reload active updated from 
checkgroups

I've tried this with the input file of 28 new groups listed 
one-per-line. Then with a similar file with "ctlinnd newgroup " (space 
at the end and without quotes) preceding each group name. Then with 
"newgroup " alone preceding each group name.

Nothing is changed in the active file, and the man page for mod-active 
gives no example of the input file.

Sample bash session follows:

news@news7:~$ mod-active newgroupsfile
reading list of groups to update
ctlinnd pause batch active update, ok
rewriting active file
ctlinnd reload active 'updated from checkgroups'
ctlinnd go batch active update, ok
updating /var/lib/news/active.times
news@news7:~$

Permissions for active:

-rw-r--r--   1 news news    1674 2006-07-11 06:10 active

There were no errors:

news@news7:/var/log/news$ ls -al
total 81
drwxr-sr-x   4 news news   456 2006-07-11 00:00 .
drwxr-xr-x  11 root root  3000 2006-07-11 06:27 ..
-rw-r--r--   1 news news     0 2006-07-11 00:00 errlog
-rw-rw-r--   1 news news   744 2006-07-11 00:00 expire.lastlowmark
-rw-rw-r--   1 news news  5222 2006-07-11 00:00 expire.list
-rw-rw-r--   1 news news   721 2006-07-11 00:01 expire.log
-rw-rw-r--   1 news news     0 2006-06-18 20:10 innfeed.log
-rw-rw-r--   1 news news  2839 2006-07-11 06:15 innfeed.status
-rw-r--r--   1 news news 14892 2006-07-11 06:28 news
-rw-r--r--   1 news news     0 2006-07-11 00:00 news.crit
-rw-r--r--   1 news news     0 2006-07-11 00:00 news.err
-rw-r--r--   1 news news 31083 2006-07-11 06:21 news.notice
drwxrwxr-x   2 news news   904 2006-07-11 00:00 OLD
drwxrwxr-x   2 news news    48 2005-05-14 08:16 path
-rw-r--r--   1 root news   106 2006-06-26 17:20 rc.news
-rw-rw----   1 news news   242 2006-07-11 00:00 unwanted.log


Any ideas on how to use mod-active with a textfile, and how the file 
should actually be formatted?

-- 
John
Re: Adding new groups using mod-active
#73837
Author: r.rimmer
Date: Tue, 11 Jul 2006 11:47
87 lines
4784 bytes
John F. Morse wrote:
> Russ Allbery wrote:
>
> >John F Morse <xanadu.bbs@invalid.net> writes:
> >
> >>I know of no other routine that can use these lists to create the active
> >>file, or to create a textfile which could be appended to the active
> >>file.
> >>
> >
> >This is exactly what actsync tries to do, and it can use the lists on
> >ftp.isc.org.
> >
>
>
> I found and have tried to use mod-active(8) to update the active file.
> It appears to be working, and news.notice shows the activity, but after
> it finishes, the active file is not updated.
>
B> Sample news.notice:
>
> Jul 11 06:07:53 localhost innd: SERVER paused batch active update, ok
> Jul 11 06:07:53 localhost innd: controlchan! closed
> Jul 11 06:07:53 localhost innd: innfeed! closed
> Jul 11 06:07:53 localhost innd: controlchan! spawned
> controlchan!:12:proc:16778
> Jul 11 06:07:53 localhost innd: innfeed! spawned innfeed!:16:proc:16779
> Jul 11 06:07:53 localhost innd: SERVER reload active updated from
> checkgroups
>
> I've tried this with the input file of 28 new groups listed
> one-per-line. Then with a similar file with "ctlinnd newgroup " (space
> at the end and without quotes) preceding each group name. Then with
> "newgroup " alone preceding each group name.
>
> Nothing is changed in the active file, and the man page for mod-active
> gives no example of the input file.
>
> Sample bash session follows:
>
> news@news7:~$ mod-active newgroupsfile
> reading list of groups to update
> ctlinnd pause batch active update, ok
> rewriting active file
> ctlinnd reload active 'updated from checkgroups'
> ctlinnd go batch active update, ok
> updating /var/lib/news/active.times
> news@news7:~$
>
> Permissions for active:
>
> -rw-r--r--   1 news news    1674 2006-07-11 06:10 active
>
> There were no errors:
>
> news@news7:/var/log/news$ ls -al
> total 81
> drwxr-sr-x   4 news news   456 2006-07-11 00:00 .
> drwxr-xr-x  11 root root  3000 2006-07-11 06:27 ..
> -rw-r--r--   1 news news     0 2006-07-11 00:00 errlog
> -rw-rw-r--   1 news news   744 2006-07-11 00:00 expire.lastlowmark
> -rw-rw-r--   1 news news  5222 2006-07-11 00:00 expire.list
> -rw-rw-r--   1 news news   721 2006-07-11 00:01 expire.log
> -rw-rw-r--   1 news news     0 2006-06-18 20:10 innfeed.log
> -rw-rw-r--   1 news news  2839 2006-07-11 06:15 innfeed.status
> -rw-r--r--   1 news news 14892 2006-07-11 06:28 news
> -rw-r--r--   1 news news     0 2006-07-11 00:00 news.crit
> -rw-r--r--   1 news news     0 2006-07-11 00:00 news.err
> -rw-r--r--   1 news news 31083 2006-07-11 06:21 news.notice
> drwxrwxr-x   2 news news   904 2006-07-11 00:00 OLD
> drwxrwxr-x   2 news news    48 2005-05-14 08:16 path
> -rw-r--r--   1 root news   106 2006-06-26 17:20 rc.news
> -rw-rw----   1 news news   242 2006-07-11 00:00 unwanted.log
>
>
> Any ideas on how to use mod-active with a textfile, and how the file
> should actually be formatted?
>
> --
> John

By entering this command(    checkgroups:*:*binaries*:drop)  in
control.ctl
Does this comand stop all newsgroups with binaries in the name?

robert
Re: Adding new groups
#73838
Author: John F. Morse
Date: Tue, 11 Jul 2006 12:39
38 lines
2161 bytes
r.rimmer@gmx.net wrote:

>Please may I have some feedback on the following.
>
>how to i add the following news groups and to which file.
>alt.anonymous*
>  
>
>>alt.computer.security
>>alt.cotse
>>alt.hacker
>>alt.privacy*
>>alt.security*
>>alt.testing.testing
>>comp.security.pgp.discuss
>>sci.crypt
>>talk.politics.crypto 
>>    
>>
>
>how to delete news groups .
>
>robert
>


Robert,

With so few groups, I'd use "ctlinnd newgroup groupname"

You cannot use the "*" wildcard in a group name.

To delete a group, use "ctlinnd rmgroup groupname"

See man ctlinnd(8) for details.

-- 
John
Re: Adding new groups using mod-active
#73839
Author: r.rimmer
Date: Tue, 11 Jul 2006 13:13
86 lines
4850 bytes
r.rimmer@gmx.net wrote:
> John F. Morse wrote:
> > Russ Allbery wrote:
> >
> > >John F Morse <xanadu.bbs@invalid.net> writes:
> > >
> > >>I know of no other routine that can use these lists to create the active
> > >>file, or to create a textfile which could be appended to the active
> > >>file.
> > >>
> > >
> > >This is exactly what actsync tries to do, and it can use the lists on
> > >ftp.isc.org.
> > >
> >
> >
> > I found and have tried to use mod-active(8) to update the active file.
> > It appears to be working, and news.notice shows the activity, but after
> > it finishes, the active file is not updated.
> >
> B> Sample news.notice:
> >
> > Jul 11 06:07:53 localhost innd: SERVER paused batch active update, ok
> > Jul 11 06:07:53 localhost innd: controlchan! closed
> > Jul 11 06:07:53 localhost innd: innfeed! closed
> > Jul 11 06:07:53 localhost innd: controlchan! spawned
> > controlchan!:12:proc:16778
> > Jul 11 06:07:53 localhost innd: innfeed! spawned innfeed!:16:proc:16779
> > Jul 11 06:07:53 localhost innd: SERVER reload active updated from
> > checkgroups
> >
> > I've tried this with the input file of 28 new groups listed
> > one-per-line. Then with a similar file with "ctlinnd newgroup " (space
> > at the end and without quotes) preceding each group name. Then with
> > "newgroup " alone preceding each group name.
> >
> > Nothing is changed in the active file, and the man page for mod-active
> > gives no example of the input file.
> >
> > Sample bash session follows:
> >
> > news@news7:~$ mod-active newgroupsfile
> > reading list of groups to update
> > ctlinnd pause batch active update, ok
> > rewriting active file
> > ctlinnd reload active 'updated from checkgroups'
> > ctlinnd go batch active update, ok
> > updating /var/lib/news/active.times
> > news@news7:~$
> >
> > Permissions for active:
> >
> > -rw-r--r--   1 news news    1674 2006-07-11 06:10 active
> >
> > There were no errors:
> >
> > news@news7:/var/log/news$ ls -al
> > total 81
> > drwxr-sr-x   4 news news   456 2006-07-11 00:00 .
> > drwxr-xr-x  11 root root  3000 2006-07-11 06:27 ..
> > -rw-r--r--   1 news news     0 2006-07-11 00:00 errlog
> > -rw-rw-r--   1 news news   744 2006-07-11 00:00 expire.lastlowmark
> > -rw-rw-r--   1 news news  5222 2006-07-11 00:00 expire.list
> > -rw-rw-r--   1 news news   721 2006-07-11 00:01 expire.log
> > -rw-rw-r--   1 news news     0 2006-06-18 20:10 innfeed.log
> > -rw-rw-r--   1 news news  2839 2006-07-11 06:15 innfeed.status
> > -rw-r--r--   1 news news 14892 2006-07-11 06:28 news
> > -rw-r--r--   1 news news     0 2006-07-11 00:00 news.crit
> > -rw-r--r--   1 news news     0 2006-07-11 00:00 news.err
> > -rw-r--r--   1 news news 31083 2006-07-11 06:21 news.notice
> > drwxrwxr-x   2 news news   904 2006-07-11 00:00 OLD
> > drwxrwxr-x   2 news news    48 2005-05-14 08:16 path
> > -rw-r--r--   1 root news   106 2006-06-26 17:20 rc.news
> > -rw-rw----   1 news news   242 2006-07-11 00:00 unwanted.log
> >
> >
> > Any ideas on how to use mod-active with a textfile, and how the file
> > should actually be formatted?
> >
> > --
> > John
> 
>thanks  John for your reply to my post

robert
Re: Adding new groups using mod-active
#73840
Author: John F. Morse
Date: Tue, 11 Jul 2006 15:52
56 lines
3415 bytes
John F. Morse wrote:

> I found and have tried to use mod-active(8) to update the active file. 
> It appears to be working, and news.notice shows the activity, but 
> after it finishes, the active file is not updated. 



After a few hours of trial and error, here are my results on using 
mod-active(8) to add groups.

I discovered the input file for mod-active had to be written as:

ctlinnd newgroup group.one 0000000000 0000000001 y
ctlinnd newgroup group.two 0000000000 0000000001 y
ctlinnd newgroup group.three 0000000000 0000000001 y
ctlinnd newgroup group.four 0000000000 0000000001 y
ctlinnd newgroup group.five 0000000000 0000000001 y

This resulted in the following in the active file:

group.one 0000000000 0000000001 0
group.two 0000000000 0000000001 0
group.three 0000000000 0000000001 0
group.four 0000000000 0000000001 0
group.five 0000000000 0000000001 0

I have no idea why the zeros are in the flag when a "y" was given in the 
textfile. I tried it with uppercase "Y" and had the same result.

I also have no idea what will result when someone tries to post a 
message with these flags.

Anyone have any ideas?

Looking in active.times I see two oddities, which represent two 
top-level hierarchies

group* 1152265502 usenet
group.* 1152265633 usenet
group.one 1152628888 checkgroups-update
group.two 1152629058 checkgroups-update
group.three 1152629058 checkgroups-update
group.four 1152629058 checkgroups-update
group.five 1152629058 checkgroups-update

Looking at the epoch date, I probably had the first two groups 
previously on the server.

Another fly in the ointment: man active.times(5) brings up active(5) in 
Debian Sarge. The file is in /usr/share/man/man5 as active.times but it 
won't open using the man command. I had to read the active.times(5) 
version at die.net on the Web.

-- 
John
Re: Adding new groups using mod-active
#73842
Author: Jeffrey M. Vinocur
Date: Wed, 12 Jul 2006 08:57
16 lines
1766 bytes
In article <n6Msg.117945$mF2.5310@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I found and have tried to use mod-active(8) to update the active file. 
>It appears to be working, and news.notice shows the activity, but after 
>it finishes, the active file is not updated.

I don't think mod-active is intended to be used manually, for
what it's worth, so I'm not going to be much help here.

I would have used actsync, personally.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Adding new groups using mod-active
#73855
Author: John F. Morse
Date: Tue, 18 Jul 2006 01:37
51 lines
3475 bytes
Jeffrey M. Vinocur wrote:

>In article <n6Msg.117945$mF2.5310@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>I found and have tried to use mod-active(8) to update the active file. 
>>It appears to be working, and news.notice shows the activity, but after 
>>it finishes, the active file is not updated.
>>    
>>
>
>I don't think mod-active is intended to be used manually, for
>what it's worth, so I'm not going to be much help here.
>
>I would have used actsync, personally.
>


I fiddled with actsync for the past week. I did get it to work, and can 
see the benefit of using it, especially for many thousands of groups.

In my case, I ignore most everything in USENET, and only host around a 
hundred groups in comp and news, plus some local stuff.

I have to use the actsync.ign file for a lot of the control, and I 
wonder if it isn't easier in my case to just use ctlinnd. Time will tell.

Another problem is I can find no method to sync to a news server that 
requires authentication. One of my ISPs requires both authentication and 
SSL. I can use Stunnel to get through the SSL.  My RumorMill server 
requires authentication, and so do my INN servers. Without being 
authenticated, all that is available with a "list" command is a couple 
of local groups.

One thing nice about the RumorMill server is the telnet command 
"xaddgroup" which, once entered, will allow a paste of the clipboard 
contents of hundreds of groups. The command is terminated with a 
newline, period, and newline sequence. The only thing missing is a 
similar command to remove multiple groups. When you goof, and add a 
thousand groups accidentally, then it's a thousand "xrmgroup 
'groupname'" commands. :-(

It does have a GUI, but it is limited to about a thousand groups. If it 
is available, then shift-clicking and deleting works for multiple groups.

Do you know of any way to use actsync to access a news server that 
requires authentication?

-- 
John
Re: Adding new groups using mod-active
#73857
Author: Jeffrey M. Vinocur
Date: Tue, 18 Jul 2006 09:11
13 lines
1589 bytes
In article <yXWug.410651$Fs1.61449@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>Do you know of any way to use actsync to access a news server that 
>requires authentication?

Well, actsync has a -A flag for this purpose.  I believe it uses
usernames and passwords defined in the passwd.nntp file.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Adding new groups using mod-active
#73858
Author: John F. Morse
Date: Tue, 18 Jul 2006 12:43
30 lines
2278 bytes
Jeffrey M. Vinocur wrote:

>In article <yXWug.410651$Fs1.61449@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Do you know of any way to use actsync to access a news server that 
>>requires authentication?
>>    
>>
>
>Well, actsync has a -A flag for this purpose.  I believe it uses
>usernames and passwords defined in the passwd.nntp file.
>


I noticed that and tried it, but my user passwords are not in that 
particular file. I'll need to copy them and give it another try.

I believe this file's password(s) are not the same as those used for 
readers.conf ckpasswd authentication, but for peering. So I will need 
more experimentation.

One of these days I should be well-enough educated from trial-and-error 
experience to start giving advice. ;-)

Thanks, Jeff.

-- 
John
Re: Adding new groups using mod-active
#73862
Author: John F. Morse
Date: Tue, 18 Jul 2006 18:49
62 lines
3532 bytes
John F. Morse wrote:

> Jeffrey M. Vinocur wrote:
>
>> In article <yXWug.410651$Fs1.61449@bgtnsc05-news.ops.worldnet.att.net>,
>> John F. Morse <xanadu.bbs@invalid.net> wrote:
>>  
>>
>>> Do you know of any way to use actsync to access a news server that 
>>> requires authentication?
>>>   
>>
>>
>> Well, actsync has a -A flag for this purpose.  I believe it uses
>> usernames and passwords defined in the passwd.nntp file.
>>
>
>
> I noticed that and tried it, but my user passwords are not in that 
> particular file. I'll need to copy them and give it another try.
>
> I believe this file's password(s) are not the same as those used for 
> readers.conf ckpasswd authentication, but for peering. So I will need 
> more experimentation.
>
> One of these days I should be well-enough educated from 
> trial-and-error experience to start giving advice. ;-)
>
> Thanks, Jeff. 



Jeff,

I have tested and this actsync -A option does work as long as the 
host:username:password is in the passwd.nntp file. It also works great 
to an SSL NNTP server using Stunnel and authentication.

I knew I had read this a few days ago, but I couldn't find the -A option 
in my man page printout. It does appear in a few of the man pages on the 
Web though. Mine came from 
http://www.tin.org/bin/man.cgi?section=8&topic=actsync

It seems there are at least three (maybe more) versions of the actsync 
man page available. Of course none of them have any date, nor reference 
to a particular version of INN.

Some have only four lines of example for actsync.cfg and with different 
values. One usually good source (die.net) prints a Google ad over the text.

The man page packed in the INN 2.4.3 distribution is good, but the "man 
actsync > lpr" which I used for printing, lacked any formatting, and 
left a lot of text outside the margin of the printed page (missing words 
and even lines).

Perhaps there is a better method to route a "formatted" man page to a 
printer?

Thanks.

-- 
John
Re: Adding new groups using mod-active
#74101
Author: Russ Allbery
Date: Sat, 26 Aug 2006 19:57
43 lines
3153 bytes
John F Morse <xanadu.bbs@invalid.net> writes:

> After a few hours of trial and error, here are my results on using
> mod-active(8) to add groups.

> I discovered the input file for mod-active had to be written as:

> ctlinnd newgroup group.one 0000000000 0000000001 y
> ctlinnd newgroup group.two 0000000000 0000000001 y
> ctlinnd newgroup group.three 0000000000 0000000001 y
> ctlinnd newgroup group.four 0000000000 0000000001 y
> ctlinnd newgroup group.five 0000000000 0000000001 y

No, the input file for mod-active should be written as:

    ctlinnd newgroup group.one y
    ctlinnd newgroup group.two y

and so forth.  That's the main cause of your problem.

> This resulted in the following in the active file:

> group.one 0000000000 0000000001 0

Yes, because the flags field that you gave it was "0000000000", and it
took the first character as the flag.  It probably should have complained
about an invalid format, but I'm not sure how much work it's worth doing
on mod-active since it has some fundamental issues.  It's really better to
use a sequence of ctlinnd commands with a modern INN.

> Another fly in the ointment: man active.times(5) brings up active(5) in
> Debian Sarge. The file is in /usr/share/man/man5 as active.times but it
> won't open using the man command. I had to read the active.times(5)
> version at die.net on the Web.

active.times used to be documented in the same manual page as active and
was only recently split into a separate file.  So this is expected.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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