From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QiYgr-00075F-88 for garchives@archives.gentoo.org; Sun, 17 Jul 2011 21:15:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99D4721C0B7; Sun, 17 Jul 2011 21:15:44 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6F01C21C0B7 for ; Sun, 17 Jul 2011 21:14:43 +0000 (UTC) Received: by iyf40 with SMTP id 40so3152461iyf.40 for ; Sun, 17 Jul 2011 14:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=FEOPuQE4GiZhbFIF1ebb3305/bhNP3nWqCAKRANlN1Q=; b=fe1KUfsq/sGTfd/YtUg0OIBYNDZIVCCrWvb1LQgN09P7RT2vExGWi4R/2ldlNDfyTg YzTKPk+d8Sz8rRWws+y7U8mrFk6P4rC4oc9ZIdAtms/JeGbZK0yw9k8zSvOy67mUq5ZH UyYgMnbW1aQMhBy38cMxjw7RUFY/kfT/mnnm4= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.43.131.65 with SMTP id hp1mr6451873icc.135.1310937282332; Sun, 17 Jul 2011 14:14:42 -0700 (PDT) Received: by 10.42.166.72 with HTTP; Sun, 17 Jul 2011 14:14:42 -0700 (PDT) Received: by 10.42.166.72 with HTTP; Sun, 17 Jul 2011 14:14:42 -0700 (PDT) In-Reply-To: References: Date: Sun, 17 Jul 2011 23:14:42 +0200 Message-ID: Subject: Re: [gentoo-user] Any way around "Argument list too long"? From: Alan McKinnon To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=20cf307f30d609466d04a84a5f53 X-Archives-Salt: X-Archives-Hash: f4d5f7a4c4a26e25743be7f89f8728dd --20cf307f30d609466d04a84a5f53 Content-Type: text/plain; charset=UTF-8 Are you using wildcards in the arguments to rm ? Rather use find | xargs or find -exec which are designed to deal with exactly this circumstance. On 17 Jul 2011 9:32 PM, "Grant" wrote: My crontab deletes all files of a certain type in a certain folder with yesterday's date in the filename. It usually executes but sometimes fails with: /bin/rm: Argument list too long What would you do about this? - Grant --20cf307f30d609466d04a84a5f53 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Are you using wildcards in the arguments to rm ?

Rather use find | xargs or find -exec which are designed to deal with ex= actly this circumstance.

On 17 Jul 2011 9:32 PM, "Grant" <= emailgrant@gmail.com> wrote:=

My crontab deletes all files of a certain type in a certain folder<= br> with yesterday's date in the filename. =C2=A0It usually executes but sometimes fails with:

/bin/rm: Argument list too long

What would you do about this?

- Grant

--20cf307f30d609466d04a84a5f53--