Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: My perl script to run arbitrary tasks in parallel

0 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted

des...@verizon.net

unread,
Nov 17, 2009, 11:41:18 AM11/17/09
to
Ignoramus30118 <ignoram...@NOSPAM.30118.invalid> writes:

> #!/usr/bin/perl
>
> #
> # This script reads its standard input, or from files given on
> # command line (<>).
> #
> # It executes every line as a separate shell command. If --parallel
> # argument is given, it executes as many jobs in parallel, as
> # possible, but no more tham "--parallel" at any given time.
> #
> # This can be helpful to speed up some tasks.

Make with the -j option.

-j = as many as possible
-j nnn up to nnn at a time.

In addition job interdedpence can be handled.

Ie. don't start these 3 jobs until these other 2 run to completion
successfully.

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages