On Tue, 2004-06-29 at 11:15, Edwin Humphries wrote:
> Of course, sendmail is going into overload, and slowing the machine 
> down enormously, and given that the emails are double-bounce, to no 
> avail. But i tried to delete the queue with "rm *" in 
> /var/spool/mqueue, but got "Argument list too long".

cd /var/spool/mqueue; ls | xargs rm

That's the way I prefer, but it's certainly not the only one. :-)

xargs will split the arguments up in to chunks that are under the
maximum argument list, and feed each chunk to a seperate rm process.
It's pretty awesome - check the man page.

I'd recommend using this in conjunction with James' advice for maximum
happy fun mail time.

-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to