From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 28 17:50:09 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A74A91065680 for ; Fri, 28 Oct 2011 17:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5302B8FC12 for ; Fri, 28 Oct 2011 17:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SHo93g099057 for ; Fri, 28 Oct 2011 17:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SHo92H099056; Fri, 28 Oct 2011 17:50:09 GMT (envelope-from gnats) Date: Fri, 28 Oct 2011 17:50:09 GMT Message-Id: <201110281750.p9SHo92H099056@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Jason Helfman Cc: Subject: Re: ports/162109: [new port] sysutils/xjobs: Utility reads job descriptions line by line and executes in parallel X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jason Helfman List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 17:50:09 -0000 The following reply was made to PR ports/162109; it has been noted by GNATS. From: Jason Helfman To: bug-followup@freebsd.org Cc: Subject: Re: ports/162109: [new port] sysutils/xjobs: Utility reads job descriptions line by line and executes in parallel Date: Fri, 28 Oct 2011 10:46:28 -0700 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline add license. fix spacing on install target for man. -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xjobs.shar.txt" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xjobs # xjobs/distinfo # xjobs/Makefile # xjobs/files # xjobs/files/patch-Makefile.in # xjobs/pkg-descr # echo c - xjobs mkdir -p xjobs > /dev/null 2>&1 echo x - xjobs/distinfo sed 's/^X//' >xjobs/distinfo << '7de6471b778f08255cdac00f8f76c917' XSHA256 (xjobs-20110730.tgz) = 11461a4e7efe6b911d97f4541b353018818b1ce477a0b582ac8a8059e2746d23 XSIZE (xjobs-20110730.tgz) = 95147 7de6471b778f08255cdac00f8f76c917 echo x - xjobs/Makefile sed 's/^X//' >xjobs/Makefile << '80ce77573deb1fcb89b687c4eacb60bc' X# New ports collection makefile for: xjobs X# Date created: 28 October 2011 X# Whom: Jason Helfman X# X# $FreeBSD$ X# X# X XPORTNAME= xjobs XPORTVERSION= 20110730 XCATEGORIES= sysutils XMASTER_SITES= http://www.maier-komor.de/xjobs/ XEXTRACT_SUFX= .tgz X XMAINTAINER= jhelfman@experts-exchange.com XCOMMENT= Utility reads job descriptions line by line and executes in parallel X XLICENSE= GPLv2 X XGNU_CONFIGURE= yes XPLIST_FILES= bin/xjobs XMAN1= xjobs.1 X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 X X.include 80ce77573deb1fcb89b687c4eacb60bc echo c - xjobs/files mkdir -p xjobs/files > /dev/null 2>&1 echo x - xjobs/files/patch-Makefile.in sed 's/^X//' >xjobs/files/patch-Makefile.in << 'fd49bb419c9bfdb96a92ff0a17daa780' X--- ./Makefile.in.orig 2011-10-28 09:57:51.000000000 -0700 X+++ ./Makefile.in 2011-10-28 09:57:58.000000000 -0700 X@@ -40,11 +40,5 @@ X -$(RM) $(TARGET) config.h config.log \ X config.status Makefile core X X-install: $(TARGET) X- -$(INSTALL) -d $(DESTDIR)$(bindir) X- $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) X- -$(INSTALL) -d $(DESTDIR)$(mandir) X- $(INSTALL) xjobs.1 $(DESTDIR)$(mandir) X- X lint: X lint $(CFLAGS) $(SOURCES) fd49bb419c9bfdb96a92ff0a17daa780 echo x - xjobs/pkg-descr sed 's/^X//' >xjobs/pkg-descr << '5e9d73a93d9d7a0fa9272ebe3c7a247e' Xxjobs reads job descriptions line by line and executes them in parallel. It Xlimits the number of parallel executing jobs and starts new jobs when jobs Xfinish. Therefore, it combines the arguments from every input line with the Xutility and arguments given on the command line. If no utility is given as an Xargument to xjobs, then the first argument on every job line will be used as Xutility. To execute utility xjobs searches the directories given in the PATH Xenvironment variable and uses the first file found in these directories. X Xxjobs is most useful on multi-processor/core machines when one needs to execute Xseveral time consuming command several that could possibly be run in parallel. XWith xjobs this can be achieved easily, and it is possible to limit the load of Xthe machine to a useful value. It works similar to xargs, but starts several Xprocesses simultaneously and gives only one line of arguments to each utility Xcall. X XWWW: http://www.maier-komor.de/xjobs.html 5e9d73a93d9d7a0fa9272ebe3c7a247e exit --HlL+5n6rz5pIUxbD--