The paresh Script
This shell file controls multiple shell files in a parallel fashion. It uses two arguments, a file name, and the number of processes to run concurrently. The input file contains a list of all commands to be executed, along with their arguments. The number of parallel processes defaults to four, but can be set to any positive value.
The usage is:
# paresh commands_file parallel_count
where:
commands_file contains a list of commands or shell files to be executed. As all processing occurs in parallel, the execution order is not guaranteed. The commands are processed from the start of the list through to the end of the list.
parallel_count is the maximum number of slave processes spawned simultaneously
Example 6.2. The paresh ...
Get Backup and Restore Practices for Sun Enterprise™ Servers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.