[php-maint] Bug#626640: Bug#626640: Small optimization

Ondřej Surý ondrej at debian.org
Mon May 16 14:19:31 UTC 2011


Hmm, that looks like a nice optimization. Bob, what do you think?

-s (suppresses the output of fuser)

O.

On Mon, May 16, 2011 at 15:52, Marcus Cobden
<debian-bugs at marcuscobden.co.uk> wrote:
> Here's (what I hope is) a small optimisation to Bob's solution.
>
> * fuser returns non-zero if the files aren't in use
> * since we only need the argument once, we probably don't need a shell
>
> Can you guys check this over for me?
>
> find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f \
>        -cmin +$(/usr/lib/php5/maxlifetime) \
>        ! -execdir fuser -s {} \; \
>        -delete
>
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej at sury.org>
http://blog.rfc1925.org/





More information about the pkg-php-maint mailing list