rm -Rf /var/log/news /var/log/mail
mkdir -m 755 /var/log/news /var/log/mail

It works, been there, done that.

Bill


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Johnson, Jr.
> Sent: Thursday, October 19, 2000 11:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [expert] logrotate
> 
> 
> Turgut Kalfaoglu wrote:
> > 
> > Let's assume that you have successfully ignored the patches,
> > and announcements, and ended up with a system (Mandrake 7.1)
> > that has over 5 MILLION files on its /var/log/mail and 
> /news directories.
> > 
> > Let's also assume that when you type:
> >   [root@db2 mail]# rm *
> > you get:
> >   bash: /bin/rm: Argument list too long
> > 
> > any ideas what you can do to save your servers? :)
> > 
> > Thank you!
> >   -turgut
> > 
> > PS: 5 million files is an estimate.
> > 
> > -----
> 
> Divide and conquer:
> rm [Aa]*
> rm [Bb]*
> rm [Cc]*
> etc., etc.
> 
> Ron
> -- 
> +----------------------------------------------------------+
> | Ron Johnson, Jr.        Home: [EMAIL PROTECTED]     |
> | Jefferson, LA  USA      WWW : [EMAIL PROTECTED]     |
> |                         http://ronandheather.dhs.org     |
> +----------------------------------------------------------+
> 
> 


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to