Skip to content

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

License

Notifications You must be signed in to change notification settings

dustinblackman/tcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

MIT

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages