rancid_par(1)
π rancid_par(1) β the General Commands Manual page, but make it a group chat π
okay so bestie, welcome to rancid_par β parallel command processing β¨ that's the whole vibe. it's the rancid_par(1) page and we're gonna get through it together, no cap.
β¨ NAME β¨
rancid_par β parallel command processing π¦
πΈ SYNOPSIS πΈ
rancid_par [-FHdefiqx] [-c command] [-l logfile] [-n #] [-p #] [file [file...]]
like... that's the whole shape of it. flags, then maybe some files. slay.
π DESCRIPTION π
so rancid_par takes a list of files and runs a command on them. that's the job. that's the assignment. π
here's the tea tho β the first line of each file has to begin with either a colon (:) or a pound-sign (#). those are your two moods:
- if it's a colon, then the rest of that first line is a command to run for each of the subsequent lines. like a lil template. β¨
- if it's a pound-sign, then every subsequent line is its own self-contained command... unless you passed the
-coption, in which case those lines become the arguments that replace the braces ({}s) in the-cargument. plot twist, but make it useful. π
oh and you can also feed the input file on stdin, in the exact same format as described above. same energy, different pipe.
and in every case where those lines after the first one are not commands (i.e. the colon case, or the -c case), instances of open-close braces ({}) in the command get replaced by those values. substitution, but make it fashion. π
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, bestie, don't come for me):
b
a
c
β οΈ note that "order will vary" thing. that's real. it's parallel, it's chaos, it's iconic. don't @ me when your output isn't alphabetical.
π OPTIONS π
the command-line options are as follows, and yes we're doing all of them, no skipping, that's the rule:
-Fβ omit the footer that normally follows the output of each job. bye bye lil footer π«Ά-Hβ omit the header that normally precedes the output of each job. no header for you π-cβ the command to be run on each of the arguments following the command-line options, where the first line of the input file(s) begins with a pound-sign (#). π-dβ print debugging information on standard error (stderr). repeat the option up to three times for more verbosity. yes, you can stack it. go off. π₯-eβ split args by spaces, rather than usingsh -c. > note:-eis incompatible with the-ioption. so don't. π-fβ no input file orSTDIN, just run a quantity of the command specified with-c. sometimes you just wanna run it, yk?-iβ run commands interactively through (multiple)xterm(1)processes. very main character. π₯οΈβ¨-lβ prefix of logfile name, as inprefix.NwhereNis therancid_parprocess number ([0..]).- default:
par.log.<time>.[0..]
- default:
-n Nβ number of simultaneous processes.- default:
3
- default:
-p Nβ pauseNseconds between running commands. hydration break π§-qβ quiet mode. omit the typical processing logs and do not create the log files from-l; instead the children inheritstdoutandstderrfromrancid_par. > β οΈ-qis mutually exclusive with the-xand-loptions, and the option appearing last will take precedence. it's giving "last one to speak wins". π-xβ viewrancid_parlogs in real-time via anxterm(1). live footage. πΊ
π¦ FILES π¦
par.log.T.Nβ log file; whereTis the current time in seconds since the epoch andNis therancid_parprocess number ([0..]). timestamped and numbered, as one does. π
π HISTORY π
so rancid_par was ported from the perl version. it differs in the following manner:
- if
rancid_parreceives aHUP/INT/TERM/QUITsignal, it does not print the commands that will not be run. no ghost commands, they just don't show up. π» - if
rancid_parreceived aHUP/INT/TERM/QUITsignal, it does not exit immediately after sending kill to running jobs. it waits for them to exit so that they are cleaned-up properly. > if a second signal is received, it dies immediately. so like, the first one is a polite request and the second one is a "okay fine, bye". π
okay bestie that's the whole page π«Ά you did it, you read the entire thing, we love that for you. this was rancid_par(1) from the General Commands Manual, dated 29 July 2019 β mwah, iconic, periodt. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: rancid 3.13-2+b1 Β· BSD-4-Clause
- debian trixie: rancid 3.14-1 Β· BSD-3-Clause
- ubuntu jammy: rancid 3.13-1 Β· BSD-4-Clause
- ubuntu noble: rancid 3.13-3 Β· BSD-4-Clause
- ubuntu questing: rancid 3.14-1
- ubuntu resolute: rancid 3.14-1build1 Β· BSD-3-Clause
- ubuntu stonking: rancid 3.14-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms