🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Joe St Sauver Wed, 28 Feb 1996 00:00
Updating active.times after manually editing active file?
#5352
Author: Joe St Sauver
Date: Wed, 28 Feb 1996 00:00
13 lines
968 bytes
For various reasons I tend to edit the active file manually rather than 
using ctlinnd to add or remove groups. One side effect/feature of this
is that active.times doesn't appear to get updated. 

Is there anyway to update active.times to reflect any groups that have
been manually added? (I didn't notice anything prima facie applicable 
in man news-recovery, say)

Thanks and regards,

Joe St Sauver (joe@oregon.uoregon.edu)

Re: Updating active.times after manually editing active file?
#5463
Author: Larry Miller [DT]
Date: Sat, 02 Mar 1996 00:00
35 lines
1407 bytes
Joe St Sauver (joe@decoy.uoregon.edu) wrote:

: Is there anyway to update active.times to reflect any groups that have
: been manually added? (I didn't notice anything prima facie applicable 
: in man news-recovery, say)

Dunno, but this might do the job:

# /bin/sh
for group in `cut -d" " -f1 active`
do
	grep ${group} active.times > /dev/null || echo $group `./systime`
joe >> active.times
done
---------------
# Compile this into systime command
#include <stdio.h>
#include <time.h>
void main(void)
{
	long curtime;
	curtime = time(0);
	printf ("%ld", curtime);
	return;
}
-------------

Saludos-- Larry

Larry Miller
Administrador de Redes / Network Administrator
Centro de Investigaciones Biologicas del Noroeste, La Paz, BCS Mexico 
lmiller@cibnor.conacyt.mx

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