paexec_reorder - reorder sliced output of "paexec -l"
Contents
Bugs/Feedback
Please send any comments, questions, bug reports etc. to me by e-mail or (even better) register them at
sourceforge project home. Feature requests are also welcomed.
Description
paexec with -l option produces a sliced output where results of different tasks are intermixed. The
intent of paexec_reorder is to produce ordered output where results for all tasks follow each other
without intermixing. It is strongly recommended to send output of "paexec-le" or "paexec-gle" to the
input of paexec_reorder. Otherwise more memory or disk space for temporary files will be required.
Environment
TMPDIRtempnam(3) is used for creating temporary directory. See the appropriate man page.
PAEXEC_EOT
The same as in paexec.
Examples
paexec -t '/usr/bin/ssh -x' -n 'host1 host2 host3' \
-l -c ~/bin/complex_task | paexec_reorder
paexec -gEI -lr -n 'host1 host2 host3' \
-c command -t /usr/bin/rsh < tasks.txt | paexec_reorder -lgS -Mf
For other examples, see examples/ directory
Home
Name
paexec_reorder - reorder sliced output of "paexec -l"
Options
-h Display help information.
-Mmethod
If method is m, result is reordered in memory, this is the default. If it is f, temporary files
are used for reordering. If s, sort(1) command is used.
-l Prepand output lines with the task number.
-g By default output of "paexec-le" is expected on input. With -g option, output of "paexec-gle" is
expected. In this case paexec_reorder will react on "fatal" paexec's keyword.
-x If applied, output of "paexec -le [-g] -x" is expected on input. This option has higher priority
than PAEXEC_EOT environment variable. Actually -x and -y are synonyms.
-y If applied, output of "paexec -le [-g] -y" is expected on input. This option has higher priority
than PAEXEC_EOT environment variable.
-S Remove leading space character.
-m s=success-m f=failure-m F=fatal-m t=eot
Set alternative string for 'success', 'failure', 'fatal' and '' (end of task).
See Also Paexec (1) Tempnam (3)
2019-11-24 paexec_reorder(1)
Synopsis
paexec_reorder [OPTIONS] [files...]
