Skip to content
A slightly lazy shell script to run parallel commands with tmux panes through a FIFO queue.
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
LICENSE init Feb 13, 2020
README.md update README Feb 13, 2020
tcon.sh remove templating from mktemp Feb 14, 2020

README.md

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

You can’t perform that action at this time.