No description
Find a file
2022-10-04 14:56:12 -05:00
contrib Include dummy_load script useful for testing 2016-10-20 13:26:55 -05:00
lib/App Sys::CPU is optional 2022-10-03 21:37:38 -05:00
script Forgot ; 2022-10-04 14:56:12 -05:00
t Suppress stderr from nproc command 2016-10-19 14:15:49 -05:00
.gitignore Sys::CPU is optional 2022-10-03 21:37:38 -05:00
Changes Prepare for module distribution 2016-10-14 21:45:16 -05:00
dist.ini Use Sys::CpuAffinity to find number of CPUs available instead of Sys::CPU which seems to no longer exist in CPAN 2022-10-04 14:55:16 -05:00
README.md Use Sys::CpuAffinity to find number of CPUs available instead of Sys::CPU which seems to no longer exist in CPAN 2022-10-04 14:55:16 -05:00

NAME

prun - Provides the prun script as a command line interface to Parallel::ForkManager.

VERSION

version 1.11

DESCRIPTION

prun allows you to utilize multiple CPUs for some workloads from the shell more easily.

prun takes a list of commands (stdin and/or from file(s)) and run the commands in parallel.

prun is a CLI front end to Parallel::ForkManager. It runs commands in parallel up to a maximum number of processes at once.

SYNOPSYS

for nr in `seq 1..100`; do echo "echo command #$nr" | prun

prun command_file_to_run_in_parallel

EXAMPLES

There are also examples available from the command line --help.

Run tkprof against all .trc files in the current directory, run 32 of them at a time.

for F in *.trc; do echo "tkprof $F ${F%trc}txt"; done | prun -p 32

Run all commands in a file (command_file), one command per line. Run the default number of processes in parallel ($def_processes). Ignore any failed processes, but do report to STDOUT any that fail.

prun -r command_file

Test with the dummy_load script included in the contrib/ directory of this distribution:

for F in `seq 1 100`; do echo "contrib/dummy_load"; done | prun

SEE ALSO

REPOSITORY

The source repository for this module may be found at https://github.com/jmccarv/App-Prun.git

clone it:

git clone https://github.com/jmccarv/App-Prun.git

AUTHOR

Jason McCarver slam@parasite.cc

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Jason McCarver.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.