Skip to content

jamespan/tmux-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Tmux-Parallel

Run commands in parallel using tmux.

Design for speed up brew installation, but also helpful in other situations maybe.

Usage

Assume that we have a text file with brew install commands, whichi named ./brew1.

#! /bin/bash
# file: brew1
brew cask install evernote
brew cask install inboard
brew cask install macvim
brew cask install macdown
# brew cask install qq
brew cask install qq
brew cask install qq
brew cask install qq
brew cask install qq
brew cask install qq
brew cask install qq
brew cask install qq

We can comment lines using # just like shell scripts.

Then we run this installation in parallel with tmux-parallel.

python ./tmux-parallel.py -f ./brew1

Following is a snapshot of the install progress.

However, commands can be fail or interrupted and return a non-zero code. We can decide to retry it or not.

Isn't it cool?

About

run commands in parallel using tmux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages