Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplex-less #8

Closed
pirj opened this issue Sep 28, 2017 · 4 comments
Closed

Multiplex-less #8

pirj opened this issue Sep 28, 2017 · 4 comments

Comments

@pirj
Copy link

pirj commented Sep 28, 2017

I use a simple script to run each item from Procfile:

grep --invert-match '#' < Procfile | sed -e 's/^[^:]*: //' | xargs -I {} tmux split-window -v \; send-keys '{}' 'C-m' && tmux select-pane -t 1 \; send-keys 'C-d' \; select-layout even-vertical

Example output for Procfile like this:

web: watch ls
workers: watch date
node: watch ls
monotor: watch date

screen shot 2017-09-28 at 17 49 57

I can selectively maximize/minimize, rearrange panes.
It's also much more convenient from the point of STDIN when all processes are run in their own panes if you decide to send signals or set breakpoints and use REPL.

Not an issue or a pull request, just would like to know what do you think.

@DarthSim
Copy link
Owner

Hi,
I had this way in mind when I developed overmind. I don't really like panes because usually there is one process that generates the most output, and some processes that output time by time& I don't like when that processes eat my terminal space without need.
But if it works for you, who am I to forbid you using plain tmux? :)

@pirj
Copy link
Author

pirj commented Nov 20, 2017

I'll just leave it here for those who took the bare tmux path:
C-b z to toggle pane zoom

For foreman it used to share STDIN across running processes and that was quite a pain if you e.g. set a breakpoint. To type something you had to repeat it several times, and you didn't see your input because of the scrolled output of the other processes.
Is overmind able to properly dispatch input?

@DarthSim
Copy link
Owner

Yup, that's exactly why overmind was developed. You can connect to a process with overmind c process and do whatever you want with it.

@qwIvan
Copy link

qwIvan commented Aug 24, 2021

Yup, that's exactly why overmind was developed. You can connect to a process with overmind c process and do whatever you want with it.

A convenient way is allow overmind to connect multi process then launcher a tmux process attach multi session in split window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants