Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 4 days ago

Concurrent Shell Command Queues

Open the sourceReported by Hacker News, emmer.dev, 13 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

A new Bash utility called Concurrent Shell Command Queues lets developers run shell commands in parallel while capping how many execute at once, using a FIFO file and xargs with a configurable parallelism limit (validated as a positive integer) to manage the queue. The tool, which accepts commands over time rather than requiring them upfront, searches for a free file descriptor between 3 and 9 and spawns xargs in the background to process NUL-separated commands through the current shell. Output from each command is captured separately rather than streamed, and non-zero exit codes are coerced to 1 to prevent a 255 code from halting xargs. The author built it out of a fondness for Bash and the challenge of adding thread-pool-like behavior to a language with weak concurrency controls, while conceding that most users would be better off with another language such as Python. The code registers an exit handler to terminate child processes and aims for semi-resilient, portable behavior across shells.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

Bash, xargs, Python