🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5463

Re: Updating active.times after manually editing active file?

#5463
From: 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

Technical Details
Message-ID: <4hada0$g78@cibnor2.cibnor.conacyt.mx>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4h2i0u$cv5@pith.uoregon.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4hada0$g78@cibnor2.cibnor.conacyt.mx>
Subject: Re: Updating active.times after manually editing active file?
Date: Sat, 02 Mar 1996 00:00:00 +0000
From: lmiller@cibnor.cibnor.conacyt.mx (Larry Miller [DT])
References: <4h2i0u$cv5@pith.uoregon.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 141845999
Organization: Centro de Investigaciones Biologicas
Newsgroups: news.software.nntp