SkillAgentSearch skills...

Tcon

A slightly lazy shell script to run parallel commands with tmux panes through a FIFO queue.

Install / Use

/learn @dustinblackman/Tcon
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

tcon

A slightly lazy shell script to run parallel commands with tmux panes through a FIFO queue. This makes it super easy to run multiple jobs at the same time while monitoring progress. tcon uses tmux-xpanes under the hood, you can pass xpanes parameters to tcon after the concurrency limit to take full advantage of it.

Usage

  # Echo a line and sleep afterwards with a concurrency of 4. `-x` is passed along to tmux-xpanes.
  seq 1 10 | (while read f; do echo "echo 'Sleeping for $f seconds' && sleep $f"; done;) | tcon 4 -x

Installation

  curl -L https://raw.githubusercontent.com/dustinblackman/tcon/master/tcon.sh > /usr/local/bin/tcon
  chmod +x /usr/local/bin/tcon

License

MIT

View on GitHub
GitHub Stars31
CategoryDevelopment
Updated1y ago
Forks0

Languages

Shell

Security Score

75/100

Audited on Nov 7, 2024

No findings