From: Martin Mares Date: Thu, 16 Feb 2012 15:51:30 +0000 (+0100) Subject: prun: Added a switch for setting the number of parallel jobs X-Git-Tag: v3.0~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=26e30cb8ff91a91bc9214478a7c9b55666682013;p=bex.git prun: Added a switch for setting the number of parallel jobs --- diff --git a/lib/bin/bex-prun b/lib/bin/bex-prun index 3fc36dd..9c37db5 100755 --- a/lib/bin/bex-prun +++ b/lib/bin/bex-prun @@ -19,6 +19,7 @@ Usage: bex prun [] [[!] ...] Options: --debug-children Log stdout and stderr to ./debug.log +-p, --parallel= Set limit on the number of jobs run in parallel -q, --queue= Run jobs in the given queue --text Use plain-text user interface instead of curses AMEN @@ -29,6 +30,7 @@ GetOptions( "q|queue=s" => \$queue_name, "text!" => \$text_mode, "debug-children!" => \$debug_children, + "j|parallel=i" => \$BEX::Config::max_parallel_jobs, "help" => \&usage, ) or die "Try `bex prun --help' for more information.\n";