Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: news.software.b Subject: Re: Expire doesn't allow 1-day expirations? Message-ID: <9929@steinmetz.steinmetz.UUCP> Date: 14 Mar 88 21:11:28 GMT References: <8089@tut.cis.ohio-state.edu> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 22 | [...] | For the time being, I decided to take a simplistic approach, and I now | `expire' talk.* with | find /usr/spool/news/talk -mtime +0 -type f -exec rm {} ';' | which has the appropriate effect, but I'd rather be doing it The Right | Way. Does anyone know if this problem has shown up elsewhere before? The way you are doing it will definitely tide you over, but I would suggest that you use xargs (there's a PD version for BSD) to avoid starting rm so many times. You can also do some useful things with setting limits on the number of articles in a directory, or k in a directory using a shell script. Use 'wc' or 'du' as appropriate. This gives longer retention for times when news is light, and saves your filesystem when its heavy. Hopefully Cnews will solve all this, and allow things like "space used by group" or some such. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me