smux
The minimal tmux launcher, with the fewest options to set and the fastest ramp-up time.
Originally created to be tool to make it easier to reproduce (and interactively debug) distributed systems bugs that required sshing into a lot of servers and starting processes, smux is a general purpose tmux launcher whose input resembles in all respects a concatenation of bash scripts to be run on each terminal.
Dependencies
Python2
tmux (any version)
Installation
Run the following command:
sudo pip install smux
Usage (as a command line tool)
Create a new file, either from scratch or by copying Sample.smux.
(Optional) Specify PANES_PER_WINDOW and LAYOUT as described in the usage message.
For every pane you want to launch, write an entry of the following form.:
--------- command1 command2 command3
Note that a pane does not necessary need to run any commands.
Note further that it is not uncommon for the first command in a pane to be ssh ... and then the subsequent commands the ones to be run on the rmeote server.
smux.py <input_file_name>
Usage (as a library)
smux has a single API call create:
import smux
smux.create(numPerWindow,
[["command1_for_pane1", "command2_for_pane1"],
["command1_for_pane2", "command2_for_pane2"],
...
])
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file smux-0.6.tar.gz.
File metadata
- Download URL: smux-0.6.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6b956e87fb135e70200e023acbc9c62bc5f695ccccfd775bdd5314fd9ab4e9
|
|
| MD5 |
7a2454492444defd2a9d09493dc45471
|
|
| BLAKE2b-256 |
e12558db36b45087948b74e562bc1c3e9b8be69165dd41208937071fbd4ce083
|