Turgut Kalfaoglu said at Ò[expert] logrotateÓ.
[2000-10-19 17:06]

> 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? :)
>
Try with 'xargs' (man xargs), it is just for that.
Also you could try also inside /var/log/xxxx with find:
find . -exec rm -f {} \;
This second solution can be MUCH slower...


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

Reply via email to