Re: Antwort: Re: what is the best way to delete so many queue files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2009-09-01 at 09:12 +0200, Frank.Brodbeck@xxxxxxxxxx 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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux