Re: [dev] tmux/screen alternative

From: Truls Becken <truls.becken_AT_gmail.com>
Date: Sun, 23 Feb 2014 19:47:53 +0100

On 2014-02-23, at 13:13, RaphaŽl Proust wrote:

> This is very interesting. The main complaint I have towards dtach(1)
> (I have the same complaint about screen(1) and tmux(1), but for those
> it's not the *main* complaint) is the need to first ssh into an
> interactive session. I'd like to do `dtach -a
> <user>_AT_<remote>:<path-to-session>`.


You do not need to ssh into an interactive session.
I use this script, which I call run-screen:

#!/bin/sh
host="$1" # blank means local
cmd="screen -D -R"
[ "$host" ] && cmd="ssh -t $host bash -l -c \"$cmd\""
exec $cmd
Received on Sun Feb 23 2014 - 19:47:53 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 23 2014 - 20:00:04 CET