On Thursday 24 January 2008 11:50:55 pm Steve Langasek wrote:
> On Sun, Jan 20, 2008 at 03:17:35PM +0000, River Tarnell wrote:

> >     xargs: rm: Argument list too long
> >

> The only way you could get this error message is if the combined number of
> bytes in the environment and argument list exceeded the kernel maximum. 
> Per the xargs manpage, by default the arguments are batched in groups of
> 131072 bytes.  Do you have an extraordinarily large number of environment
> variables?  If so, we might be able to fix this bug by using 'env';
> otherwise, I can't see any way that this bug would occur with a normal
> kernel.

why not just throw a "-n 200" or something similar to xargs?  i get this 
problem too when performing other tasks, such as cleaning up the aptcache 
directory of my pbuilder chroots (where there are maybe a couple thousand deb 
packages from time to time), and that's usually what i use to clean it out.


        sean


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to