From owner-freebsd-arch Fri Jun 21 7:33:29 2002 Delivered-To: freebsd-arch@freebsd.org Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by hub.freebsd.org (Postfix) with ESMTP id 8864E37B40A; Fri, 21 Jun 2002 07:33:24 -0700 (PDT) Received: from misha (250-217.customer.cloud9.net [168.100.250.217]) by corbulon.video-collage.com (8.12.2/8.12.2) with ESMTP id g5LEXKQC039142 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL); Fri, 21 Jun 2002 10:33:22 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: corbulon.video-collage.com: Host 250-217.customer.cloud9.net [168.100.250.217] claimed to be misha Content-Type: text/plain; charset="iso-8859-1" From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Juli Mallett Subject: Re: feature request for xargs Date: Fri, 21 Jun 2002 10:33:03 -0400 X-Mailer: KMail [version 1.4] Cc: arch@FreeBSD.ORG References: <200206200706.g5K76M514469@freefall.freebsd.org> <200206202012.17801.mi+mx@aldan.algebra.com> <20020620175700.A96462@FreeBSD.ORG> In-Reply-To: <20020620175700.A96462@FreeBSD.ORG> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200206211033.03948.mi+mx@aldan.algebra.com> X-Scanned-By: MIMEDefang 2.15 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday 20 June 2002 08:57 pm, Juli Mallett wrote: = > Something like ``xargs -j'' which would spawn off up and wait for up = > to N processes. Currently it acts as if N was 1. Specifying 0 should = > mean no limit at all. Flag ``-j'' to resemble similar feature of make. = = Tim J. Robbins and I have been discussing this for a while, and Tim had = a patch. I'm CC'ing him, and I'm sure if he still has diffs, he'll be = glad to send them here for review I'm sure. = = I'd been hesitant on this, until we were clear on how it could and would = be used, but an arch@ review is probably enough :) Here is the usage, for which I currently use make(1). Every once in a while, I have to process a big collection of images -- scanned and/or taken with a digital camera. A scripts I have, work on one image at a time, but I have two processors, so -- with the Makefile -- I do ``make -j2''. This works good, but may be done simpler with something like echo *.JPG | xargs -n1 -j2