[CentOS] Antwort: Re: what is the best way to delete so many queue files?
William L. Maltby
CentOS4Bill at triad.rr.com
Tue Sep 1 09:42:34 UTC 2009
On Tue, 2009-09-01 at 09:12 +0200, Frank.Brodbeck at klingel.de wrote:
> <snip>
> You probably want to do
>
> find /var/spool/clientmqueue -type f -exec rm -f {} \+
Or the variant ... -execdir command {} + might be preferable.
It claims to avoid potential race conditions and warns about $PATH
setting.
>
> to reduce your load or if your find(1) isn't POSIX compliant:
>
> find /var/spool/clientmqueue -type f -print0 | xargs -0 rm -f
> <snip>
> HTH,
> Frank.
> <snip sig stuff>
Frank, I need to re-read man pages more than once every decade or so. I
didn't know they had added new forms of exec.
Thanks,
--
Bill
More information about the CentOS
mailing list