News for hackers. Stuff that matters.
Re:Tmux 1.9 released by krasin on Friday February 21, 2014 @03:55AM (#7276037)
if you're running it on linux, is any reason to use screen for long-running tasks, instead of Docker?
Re:Tmux 1.9 released by davvid on Friday February 21, 2014 @04:09AM (#7276060)
The reason folks asked, "docker is a screen replacement?" is because one typical use case is using screen within an ssh session where you might get disconnected. screen holds onto the session so that you can ssh back in and continue from where you left off.

    $ ssh hostname
    $ screen
    # some time later, you get disconnected...
    $ ssh hostname
    $ screen -x
    # back to where you were before getting disconnected.
Re:Tmux 1.9 released by naterator on Friday February 21, 2014 @04:27AM (#7276106)
Screen is amazing for SSH work or if you just don't want to have 50 tabs open. I've been looking into tmux lately though for the later. I just found out about it last week.

Seriously, the amount of commands linux has that most people don't know about is staggering. This link[1] was on HN just the other day.

[1] http://www.danielmiessler.com/blog/collection-of-less-common...

Re:Tmux 1.9 released by Crito on Friday February 21, 2014 @04:46AM (#7276157)
I use tmux at work to manage at times up to several dozen sessions each with several windows/panes (I make one session for every conceptual task that I take on, and sessions live until I complete the task). In my experience it is much more robust than screen (not as many dungeon collapses, if you know what I mean) and well worth switching to.
Re:Tmux 1.9 released by Freaky on Friday February 21, 2014 @06:32AM (#7276448)
Don't forget mosh exists if you're commonly in situations where a normal ssh session is unreliable: http://mosh.mit.edu
Re:Tmux 1.9 released by joeshaw on Friday February 21, 2014 @09:53AM (#7277192)
mosh + tmux are simply amazing together. It has radically improved my life, where I keep persistent connections from my laptop to various remote machines.
Re:Tmux 1.9 released by Freaky on Friday February 21, 2014 @01:16PM (#7278402)
My only complaint with mosh is how slow it is - my top-level 266x188 tmux session absolutely crawls on it, and it's quite common to see it using more CPU than whatever heavy task is spewing out lots of tty output. Wonderful for the common case, though.
Re:Tmux 1.9 released by ars on Friday February 21, 2014 @03:58AM (#7276043)
Docker and screen do completely different things, unless you mean some other Docker than what google found for me.
Re:Tmux 1.9 released by andruby on Friday February 21, 2014 @04:13AM (#7276067)
Docker runs a whole container (with embedded OS), screen justs keeps a terminal accessible after a disconnect. I don't see how using Docker fits that usecase.
Re:Tmux 1.9 released by sillysaurus2 on Friday February 21, 2014 @04:03AM (#7276054)
Docker can be used as a screen replacement?
Re:Tmux 1.9 released by nl on Friday February 21, 2014 @05:53AM (#7276329)
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 by joeyoung on Friday February 21, 2014 @04:00AM (#7276048)
I haven't explored Docker yet. Some of my team members have been looking into it. Hoping to read up and experiment with it a bit once I have some free time.