| pararun - run commands parallelly |
pararun - run commands parallelly
pararun [OPTIONS] [COMMON_ARGS] --- PARTICULAR_ARGS [+ PARTICULAR_ARGS [+ ...]] [--- COMMON_ARGS]
Start several processes simultaneously. Starting several different commands and starting the same command with different arguments are not distinguished: COMMON_ARGS may be empty - in this case each PARTICULAR_ARGS is a command followed by its arguments; When COMMON_ARGS consists at least 1 argument, then it's the command to be started with the rest of the COMMON_ARGS arguments appended by each PARTICULAR_ARGS arguments per each child process.
pararun --- ./server + ./client Runs C<./server> and C<./client> programms in parallel. pararun ls --- /usr + /etc + /var Runs C<ls /usr>, C<ls /etc>, and C<ls /var>.
pararun --- ./server + ./client --- --port=12345 Runs C<./server> and C<./client> programms in parallel with the same command line argument. =head1 OPTIONS
Let the string SEP close the common arguments (including the command if it is common as well)
instead of the default triple dash (---).
The string SEP separates the particular arguments
instead of the default plus sign (+).
Read additional PARTICULAR_ARGS from STDIN. Each line is taken as 1 argument unless -d is given.
When reading PARTICULAR_ARGS from STDIN, split up lines into arguments by PATTERN regex pattern.
Useful delimiter is \t TAB which you may need to quote in your shell, like '\t' in bash(1).
Exit the lowest status code of the childer processes. Ie. exit with zero status code if at least one of the parallel commands succeeded. Although still waits for all to complete.
Prefix each output line with the given command's first particular argument.
Colorize each particular command's prefix. Implies -p.
Separate prefix from the rest of the line with this string. Default is one space.
Show textual summary at the end about how each command exited. Exit code, exit signal.
Don't use ANSI bold colors.
Exit with the highest exit status of the children processes.
If a command terminates due to a signal, and prefixing and/or prefix coloring is turned on,
then the signaled state is not preserved because pararun(1) pipes commands through
stdfilt(1) to get them prefixed and/or colored.
parallel(1)
polysh https://github.com/innogames/polysh/
| pararun - run commands parallelly |