[comp.unix.xenix] Wanted: smart expire scripts

brian@alzabo.UUCP (Brian Hilchie) (02/07/89)

First off I would like to apologize if there is a more appropriate
newsgroup for this request.  I don't yet have a full feed.

Due to limited disk space I would like a set of shell scripts to
enable the news expire program to behave in a reasonably intelligent
manner.  They should run once a day,  and ideally would do the
following:

- archive all sources and binaries newsgroups to tape,  and maintain
  an on-line directory so that users will know what's on tape and
  can request programs that interest them

- scan every user's .newsrc file and expire articles in newsgroups
  that nobody subscribes to after one or two days

- check the amount of free disk space,  and if it is below X% decrease
  the expire time for all remaining newsgroups by a day;  if it is
  above X% increase it by a day

I would write them myself but my time is limited, and I'm sure
something like this must have been done before.  Scripts for
SCO Xenix 2.3 would be most appreciated,  but I can modify those
written for other flavours of UNIX.

If nobody has such things I will write them (some day) and post them
if there is sufficient interest.  Thanks...
-- 
Brian Hilchie   <>   brian@alzabo.uucp   <>   uunet!mitel!sce!scs!alzabo!brian

"I try to make everyone's day a little more surreal."

eric@snark.uu.net (Eric S. Raymond) (02/10/89)

In article <314@alzabo.uucp>, brian@alzabo.UUCP (Brian Hilchie) writes:
> First off I would like to apologize if there is a more appropriate
> newsgroup for this request.  I don't yet have a full feed.

Next time, try news.software.b.

> - scan every user's .newsrc file and expire articles in newsgroups
>   that nobody subscribes to after one or two days

In TMN-netnews, you can set the `volatile' flag on a group to arrange that
any article seen by all subscribing users gets deleted by expire.
-- 
      Eric S. Raymond                     (the mad mastermind of TMN-Netnews)
      Email: eric@snark.uu.net                       CompuServe: [72037,2306]
      Post: 22 S. Warren Avenue, Malvern, PA 19355      Phone: (215)-296-5718