home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / maint / spaceshort < prev    next >
Text File  |  1994-08-21  |  875b  |  24 lines

  1. #! /bin/sh
  2.  
  3. # Newswatch runs this, with one argument, "y" if a space shortage exists
  4. # and "n" if none does.  This is to permit easy local customizing for
  5. # actions that should be taken when space is low (e.g., turning off input
  6. # flow) and when it's no longer low (e.g., turning flow back on).  The
  7. # install stuff will install this program only once, to make sure that
  8. # local changes aren't overwritten.
  9.  
  10. # Any output is sent to report -u.
  11.  
  12. # Note that this program is run *whenever* newswatch is run, not just
  13. # when the y/n status changes.  Whatever it does, it should be prepared
  14. # to handle the possibility that the status hasn't changed since last time.
  15. # If it runs for a long time (e.g., expire), it should be prepared to handle
  16. # the possibility that there's another copy already running.
  17.  
  18. if test " $1" = " y"
  19. then
  20.     : space is short
  21. else
  22.     : space is not short
  23. fi
  24.