ports/162109: [new port] sysutils/xjobs: Utility reads job descriptions line by line and executes in parallel

Jason Helfman jhelfman at experts-exchange.com
Fri Oct 28 17:20:06 UTC 2011


>Number:         162109
>Category:       ports
>Synopsis:       [new port] sysutils/xjobs: Utility reads job descriptions line by line and executes in parallel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 28 17:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Add new port that reads job descriptions line by line and executes in parallel
Builds cleanly in tinderbox => http://jgh.devio.us/files/logs/xjobs-20110730.log
Passes portlint.

Program operates as designed.
>How-To-Repeat:
	
>Fix:

# 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 <jhelfman at experts-exchange.com>
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 at experts-exchange.com
XCOMMENT=	Utility reads job descriptions line by line and executes in parallel
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 <bsd.port.mk>
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

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list