2025-09-19 11:50:30
Displayed 1164 times
Released runj v0.1 and runj v0.2, run a UNIX command in sub-processes with line-buffered I/O.
Yesterday I released runj v0.1 and today I released runj v0.2 with a couple of important fixes.
runj
is a UNIX command to run a command in an arbitrary number N of sub-processes with line-buffered input and output.
See the project page :
Our in-house use case for runj is for KC3 :
- KC3 ships runj in a submodule for ease of use. Just running make in runj should work everywhere. No configure needed so our own scripts always call
make -C runj
before calling runj.
- update_sources now uses runj for going through subdirectories
- configure now uses runj for goind through subdirectories
- all test suites running in a subdirectory full of .kc3 files are now unified under a modular test framework that calls runj to run all test targets in parallel. Example :
for TARGET in $TARGETS; do
echo "( ../test_runner ${TEST_RUNNER} ${TARGET}; )"
done | ../../bin/runj -1 /bin/sh