App-Prun-Scaled

 view release on metacpan or  search on metacpan

script/sprun  view on Meta::CPAN

    );

    print <<EOT;
$me v$App::Prun::Scaled::VERSION - run commands in parallel

usage: $me [OPTIONS] [FILE]...

Run commands, one per line, from either FILEs or stdin if no FILEs specified.

$me will adjust the number of running processes between --min-procs and
--max-procs to try to keep the system at --idle-target percent idle.

Each command is passed to perl's system() function to be executed. system() 
may use your system's shell to run the command. See perldoc -f system.

If --exit-on-failure is specified, and a command exits with a failed status, 
$me will wait for any running children to complete then exit with an error
without running any more commands.

OPTIONS
  -e, --exit-on-failure        exit when a command returns a failed status
  -h, -?, --help               display this help
  -i, --initial-procs=<num>    number of prcesses to initially start, this may
                               change over time to try to reach idle_target
                               (default: $defs{initial_procs})
  -m  --min-procs=<num>        minimum number of processes to run in parallel
                               (default: $defs{hard_min_procs})
  -M  --max-procs=<num>        maximum number of processes to run in parallel
                               (default: $defs{hard_max_procs})
  -r  --report-failed          print a message to STDERR for each command the fails
  -t, --idle-target=<pct>      endeavor to keep CPU idle % at this percentage
                               (default: $defs{idle_target})
  -T  --idle-threshold         CPU idle must be this far away from the target
                               before any adjustments will be made to the number
                               of running processes. (default: $defs{idle_threshold})
  -u, --update-frequency=<sec> how frequently to make updates to the number of
                               running processed. Set to 0 to evaluate before running
                               each process. (default: $defs{update_frequency})
  -v, --verbose                write stats to STDERR
  -V, --version                print version and exit



( run in 0.409 second using v1.01-cache-2.11-cpan-05162d3a2b1 )