rancid_par(1) | General Commands Manual | rancid_par(1) |
rancid_par - parallel command processing
rancid_par [-FHdefiqx] [-c command] [-l logfile] [-n #] [-p #] [file [file...]]
rancid_par takes a list of files to run a command on. The first line of each file begins with a colon (:) or a pound-sign (#). If a colon, the remainder of the line is a command to run for each of the subsequent lines. If a pound-sign, then each subsequent line is a (self-contained) command, unless the -c option was specified, in which case the lines become the arguments replacing the braces ({}s) in the -c argument.
The input file may also be specified on stdin, in the format as previously described.
In each of the cases where the lines of the file, following the first, are not commands (ie: colon or -c), instances of open-close braces ({}) in the command will be replaced by these values.
For example, an inputfile whose contents is:
: echo {}
a
b
c
run with rancid_par like so:
%rancid_par -q inputfile
will produce the following output (order will vary):
b
a
c
The command-line options are as follows:
Default: par.log.<time>.[0..]
Default: 3
par.log.T.N Log file; where T is the current time in seconds since the epoch and N is the rancid_par process number ([0..]).
rancid_par was ported from the perl version. It differs in the following manner:
10 November 2016 |