🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1927

Wanted: /bin/sh script for mantaining KILL files.

#1927
From: Anon
Date: Sun, 26 Jul 1992 08:53
35 lines
1816 bytes
I would like to get my hands on a script to do
some or all of the following.
 
1> Look for all kill files over X-bytes in length
1a> trim the file down until it's under X-bytes, by removing
    the first line(s) of kill commands (leaving the
    THRU line intact.
2> Remove KILL files that are older than X-days since 
    last access.
3> Mail a report to the user on which files were cleaned
    up, and what was taken out, or which files were
    deleted.
4> Can be used either system-wide using cron, or
    on an individual basis, like in .profile
 
Ok, folks... that's what I would like. I would do
it myself, but I'm still not fluent in /bin/sh scripts
to get it to work. (Plus, looking at the script or
source if U care to make it compilable would be very
useful to show me how to incorporate routines into
other code as well.)
 
I am using SCO-Xenix SysV-386.
 
(ps: still working on getting my From: field fixed. :) )
 


--
       _ _ _                  __
      ' ) ) )                /  )     _/_
       / / / o _. __  _ --- /  / __.  /  __.
      / ' (_<_(__/ (_(_)   /__/_(_/|_<__(_/|_
          C  O  N  S  U  L  T  A  N  T  S
       Kenn Booth II >-< kennii@wybbs.mi.org
Technical Details
Message-ID: <1992Jul26.085354.2710@wybbs.mi.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!sharkey!wybbs!

Show Full Headers
Complete Article Headers
Message-ID: <1992Jul26.085354.2710@wybbs.mi.org>
Subject: Wanted: /bin/sh script for mantaining KILL files.
Date: Sun, 26 Jul 1992 08:53:54 +0000
From: @wybbs.mi.org
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!sharkey!wybbs!
Newsgroups: comp.sources.wanted,news.software.readers
Organization: Micro-Data Consultants
Lines: 35