home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sources / wanted / 3751 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.5 KB

  1. Xref: sparky comp.sources.wanted:3751 news.software.readers:1556
  2. Newsgroups: comp.sources.wanted,news.software.readers
  3. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!sharkey!wybbs!
  4. From: @wybbs.mi.org
  5. Subject: Wanted: /bin/sh script for mantaining KILL files.
  6. Organization: Micro-Data Consultants
  7. Date: Sun, 26 Jul 92 08:53:54 GMT
  8. Message-ID: <1992Jul26.085354.2710@wybbs.mi.org>
  9. Lines: 35
  10.  
  11. I would like to get my hands on a script to do
  12. some or all of the following.
  13.  
  14. 1> Look for all kill files over X-bytes in length
  15. 1a> trim the file down until it's under X-bytes, by removing
  16.     the first line(s) of kill commands (leaving the
  17.     THRU line intact.
  18. 2> Remove KILL files that are older than X-days since 
  19.     last access.
  20. 3> Mail a report to the user on which files were cleaned
  21.     up, and what was taken out, or which files were
  22.     deleted.
  23. 4> Can be used either system-wide using cron, or
  24.     on an individual basis, like in .profile
  25.  
  26. Ok, folks... that's what I would like. I would do
  27. it myself, but I'm still not fluent in /bin/sh scripts
  28. to get it to work. (Plus, looking at the script or
  29. source if U care to make it compilable would be very
  30. useful to show me how to incorporate routines into
  31. other code as well.)
  32.  
  33. I am using SCO-Xenix SysV-386.
  34.  
  35. (ps: still working on getting my From: field fixed. :) )
  36.  
  37.  
  38.  
  39. --
  40.        _ _ _                  __
  41.       ' ) ) )                /  )     _/_
  42.        / / / o _. __  _ --- /  / __.  /  __.
  43.       / ' (_<_(__/ (_(_)   /__/_(_/|_<__(_/|_
  44.           C  O  N  S  U  L  T  A  N  T  S
  45.        Kenn Booth II >-< kennii@wybbs.mi.org
  46.