Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!ucbcad!ucbvax!cbosgd!osu-cis!bcd-dyn!sfq From: sfq@bcd-dyn.UUCP (sfq) Newsgroups: news.sysadmin Subject: Re: Supersedes: filling my disk (not running news 2.11) Message-ID: <898@bcd-dyn.UUCP> Date: 31 Dec 87 14:56:31 GMT References: <3727@hoptoad.uucp> <1822@decuac.DEC.COM> <107@falkor.UUCP> Organization: Battelle Columbus Division, Columbus, OH Lines: 58 Summary: Here's how I'm handling the problem. I've set up a shell script, called by cron once in a while, that unshars the maps, moves them to /users/news/Maps, and zaps the messages themselves. It's working so far. If you don't want to save the maps, it's even easier. On our system, the news stuff is in /users/news; you'll probably have to change all the references. You should also have all your users un-subscribe to comp.mail.maps. But they probably have, anyway. All ours have. Stanley F. Quayle UUCP: cbosgd!osu-cis!bcd-dyn!sfq (614) 424-4052 USPS: 505 King Ave., Columbus, OH 43201 N8SQ @ W8CQK Fido: Stanley Quayle, Node 1:226/610 My opinions are mine. What more of a disclaimer could you need? --------------------- #! /bin/csh # Moves the UUCP maps to the appropriate directory, un-shars them, and # pitches the originals. # Written 30 December 1987 by Stanley F. Quayle # Exit if news is executing (and probably unbatching) test -r /usr/spool/uucp/LCK.XQT && exit 0 # Exit if no maps have been received recently grep -s "comp.mail.maps" /users/news/lib/news/log || exit 0 # Create temporary directory mkdir /users/news/Maps/tmp # Change directory cd /users/news/Maps/tmp # Move the maps mv /users/news/spool/news/comp/mail/maps/* . # Unshar them /users/news/lib/news/unshar [0-9]* >/dev/null # Zap the originals, and any shar messages rm -f [0-9]* s.log s.tmp # Compress the maps /users/news/lib/news/compress * # Move everyone to the Maps directory, replacing as needed mv * .. # Zap the temporary directory cd /users/news/Maps rmdir /users/news/Maps/tmp -- Stanley F. Quayle UUCP: cbosgd!osu-cis!bcd-dyn!sfq (614) 424-4052 USPS: 505 King Ave., Columbus, OH 43201 N8SQ @ W8CQK Fido: Stanley Quayle, Node 1:226/610 My opinions are mine. What more of a disclaimer could you need?