Live data from Hacker News

Tmux 1.9 released

sourceforge.net

31–40 of 121 posts

Re: Tmux 1.9 released

#33
post #4
post #2

Has anyone used these, and can they give me a comparison: tmux/scree/byobu Currently a byobu user, it seems fine so far. Wondering what others offer more than that.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

That tmux broadcast trick sounds interesting. Are you able to provide some more details about it please?

Re: Tmux 1.9 released

#34

Does anyone know how to save/ retrieve sessions?

Depending on your meaning:

   $ tmux detach

   $ tmux attach
This will deattach and reattach a tmux session. You can type ``tmux detach`` inside a tmux pane of the session you want to detach. Also the key combo ``Ctrl-b d`` will detach.

If you mean a way to save the workspace configuration, tmuxp, teamocil and tmuxinator are great solutions.

(Note, I wrote tmuxp as a python project a few months ago.)

Re: Tmux 1.9 released

#35
Awesome little program. It's saved so much time so far. For anyone that wants to get up and running:

https://github.com/andyhmltn/dotfiles

That contains two tmux config files that add a few things like CTRL+B thenSHIFT+P for a nice layout and a shortcut for switching between panes with ALT+Arrow keys

Re: Tmux 1.9 released

#36
post #33
post #4

Earlier quoted context omitted.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

That tmux broadcast trick sounds interesting. Are you able to provide some more details about it please?

I didn't know about it either but found this:

https://twitter.com/j_melis/status/179173797285478400

Seems like a neat trick

Re: Tmux 1.9 released

#37

Awesome little program. It's saved so much time so far. For anyone that wants to get up and running: https://github.com/andyhmltn/dotfiles That contains two tmux config files that add a few things like CTRL+B thenSHIFT+P for a nice layout and a shortcut for switching between panes with ALT+Arrow keys

I personally use:

bind-key -n M-1 select-window -t 1

bind-key -n M-2 select-window -t 2

bind-key -n M-3 select-window -t 3

(...) For an IMHO even more convinient ALT+Number to switch directly to the tab in question, just like in firefox.

Re: Tmux 1.9 released

#38
post #33
post #4

Earlier quoted context omitted.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

That tmux broadcast trick sounds interesting. Are you able to provide some more details about it please?

Pull up the command line with "Ctrl-b :" Synchronize your panes: "setw synchronize-panes on" Now you can send the same commands to all panes in the current window. To turn synchronization off: "setw synchronize-panes off"

My shell script takes in a list of tuples (hostname plus a special id that I need to paste for my tasks that's unique to each host), splits off a window pane for each hostname(tmux split-window -h), ssh's into each host in it's own pane, and turns on synchronization.

I did a little trick to setup pastebuffers to hold that special id from the tuple i passed in. And setup keybindings so that I can press a key combination to paste in that ID whenever I need it to each respective pane.

If I ever need to temporarily remove a pane or several panes from the syncronized session but keep the others synced, I just change focus to the pane I want to unsync and put it into copy mode with "Ctrl-b [". Can take the pane back out of copy mode by hitting "q".

So far it's made me much more productive when I have to run a bunch of identical commands on a cluster of nodes for which we have no defined process (i.e. I'm figuring it out as I go).

I'll need to sanitize the script, but I'll try to put up a github gist of the script later on.

Re: Tmux 1.9 released

#39
post #6
post #4

Earlier quoted context omitted.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

if you're running it on linux, is any reason to use screen for long-running tasks, instead of Docker?

I'm a heavy Docker user.

I'm using screen right now to scp 4.5Gb from home to my Docker host. I'll close the terminal at some point and check progress tomorrow.

I guess you could do that in Docker.. but why would you?

Re: Tmux 1.9 released

#40
post #2

Has anyone used these, and can they give me a comparison: tmux/scree/byobu Currently a byobu user, it seems fine so far. Wondering what others offer more than that.

I have switched from screen to tmux and tmux IMHO more convenient (I have about 30 windows in 2..3 tmux sessions). Can't say anything about byobu.
Post reply on HN